Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LicenseContext.cs / 1305376 / LicenseContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using Microsoft.Win32; using System; using System.Diagnostics; using System.Reflection; using System.Runtime.Remoting; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class LicenseContext : IServiceProvider { ///Specifies when the licensed object can be used. ////// public virtual LicenseUsageMode UsageMode { get { return LicenseUsageMode.Runtime; } } ///When overridden in a derived class, gets a value that specifies when a license can be used. ////// public virtual string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { return null; } ///When overridden in a derived class, gets a saved license /// key for the specified type, from the specified resource assembly. ////// public virtual object GetService(Type type) { return null; } ///When overridden in a derived class, will return an object that implements the asked for service. ////// public virtual void SetSavedLicenseKey(Type type, string key) { // no-op; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //When overridden in a derived class, sets a license key for the specified type. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using Microsoft.Win32; using System; using System.Diagnostics; using System.Reflection; using System.Runtime.Remoting; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class LicenseContext : IServiceProvider { ///Specifies when the licensed object can be used. ////// public virtual LicenseUsageMode UsageMode { get { return LicenseUsageMode.Runtime; } } ///When overridden in a derived class, gets a value that specifies when a license can be used. ////// public virtual string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { return null; } ///When overridden in a derived class, gets a saved license /// key for the specified type, from the specified resource assembly. ////// public virtual object GetService(Type type) { return null; } ///When overridden in a derived class, will return an object that implements the asked for service. ////// public virtual void SetSavedLicenseKey(Type type, string key) { // no-op; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.When overridden in a derived class, sets a license key for the specified type. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ELinqQueryState.cs
- ContextStaticAttribute.cs
- CFStream.cs
- SqlRowUpdatingEvent.cs
- DrawingBrush.cs
- EventArgs.cs
- SpotLight.cs
- LinqDataSourceContextEventArgs.cs
- BrushConverter.cs
- WebPartConnectionsCancelEventArgs.cs
- MenuEventArgs.cs
- ErrorLog.cs
- SpecialNameAttribute.cs
- DBSchemaTable.cs
- InputLanguage.cs
- MemberCollection.cs
- SizeF.cs
- SchemaReference.cs
- DataGridBoolColumn.cs
- HostedTransportConfigurationManager.cs
- UserPreferenceChangingEventArgs.cs
- DiscoveryClientChannelBase.cs
- WindowsGraphics2.cs
- DataTable.cs
- PageContentAsyncResult.cs
- GatewayDefinition.cs
- InputQueueChannelAcceptor.cs
- SchemaObjectWriter.cs
- IApplicationTrustManager.cs
- XMLSchema.cs
- CacheManager.cs
- TextEncodedRawTextWriter.cs
- HiddenField.cs
- versioninfo.cs
- SessionStateSection.cs
- DeclarationUpdate.cs
- TypeHelper.cs
- FixedBufferAttribute.cs
- IOThreadTimer.cs
- OleDbConnectionFactory.cs
- DataGridViewCellValidatingEventArgs.cs
- MappedMetaModel.cs
- IndentedWriter.cs
- ProcessModelSection.cs
- XmlArrayItemAttributes.cs
- ADRole.cs
- complextypematerializer.cs
- Restrictions.cs
- EncryptedHeader.cs
- StoryFragments.cs
- Substitution.cs
- Size3DConverter.cs
- SpeechSynthesizer.cs
- _WinHttpWebProxyDataBuilder.cs
- TextBox.cs
- _CacheStreams.cs
- AutomationPatternInfo.cs
- DoubleUtil.cs
- InvokeProviderWrapper.cs
- RuntimeVariablesExpression.cs
- ObjectDataProvider.cs
- CompositeFontInfo.cs
- WebServiceParameterData.cs
- NCryptNative.cs
- ToolStripTemplateNode.cs
- ListViewInsertionMark.cs
- GeneralTransform3DCollection.cs
- Transaction.cs
- NamedPipeProcessProtocolHandler.cs
- LicenseProviderAttribute.cs
- HttpResponseMessageProperty.cs
- ComplexObject.cs
- SqlRewriteScalarSubqueries.cs
- TypeKeyValue.cs
- DataTransferEventArgs.cs
- InstanceDataCollection.cs
- SmiConnection.cs
- ToolStripGripRenderEventArgs.cs
- SqlCommandSet.cs
- AliasGenerator.cs
- SoapSchemaMember.cs
- Span.cs
- ArrayListCollectionBase.cs
- StackOverflowException.cs
- PresentationTraceSources.cs
- OrthographicCamera.cs
- TabControlCancelEvent.cs
- WizardSideBarListControlItem.cs
- DictionarySectionHandler.cs
- QilStrConcat.cs
- EmptyQuery.cs
- LazyTextWriterCreator.cs
- _NestedSingleAsyncResult.cs
- HebrewCalendar.cs
- SourceFileInfo.cs
- SqlGenericUtil.cs
- SmtpLoginAuthenticationModule.cs
- LineProperties.cs
- Bold.cs
- ChameleonKey.cs