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
- SendMailErrorEventArgs.cs
- DataGridTableCollection.cs
- KeyboardEventArgs.cs
- CodeParameterDeclarationExpression.cs
- ClientTargetCollection.cs
- ClaimTypes.cs
- DetailsViewRowCollection.cs
- SymbolMethod.cs
- DiscoveryUtility.cs
- _ChunkParse.cs
- TypeGeneratedEventArgs.cs
- WizardPanelChangingEventArgs.cs
- MessageSecurityOverTcpElement.cs
- ConnectionProviderAttribute.cs
- OpenFileDialog.cs
- MexNamedPipeBindingElement.cs
- FormParameter.cs
- UseLicense.cs
- XmlElementAttributes.cs
- ConfigsHelper.cs
- XXXOnTypeBuilderInstantiation.cs
- WebReferencesBuildProvider.cs
- XmlNavigatorStack.cs
- WindowsNonControl.cs
- BlobPersonalizationState.cs
- PrintControllerWithStatusDialog.cs
- MultipartContentParser.cs
- UrlMapping.cs
- ProjectedSlot.cs
- WindowsFormsSynchronizationContext.cs
- OleDbReferenceCollection.cs
- SubclassTypeValidator.cs
- ScrollChrome.cs
- Encoder.cs
- ServiceParser.cs
- HtmlTextArea.cs
- XmlSchemaSimpleTypeList.cs
- CustomMenuItemCollection.cs
- FilterableAttribute.cs
- QueryParameter.cs
- DeviceSpecificDialogCachedState.cs
- CacheDependency.cs
- CollectionConverter.cs
- FixedNode.cs
- ChameleonKey.cs
- File.cs
- SafeSecurityHelper.cs
- SiteMapDesignerDataSourceView.cs
- NonParentingControl.cs
- TreeNode.cs
- IntPtr.cs
- CommandSet.cs
- Int32Collection.cs
- KeySpline.cs
- OperationResponse.cs
- StringSource.cs
- DllNotFoundException.cs
- FlowLayoutPanel.cs
- RC2.cs
- MenuItemBinding.cs
- CodeThrowExceptionStatement.cs
- Quaternion.cs
- DCSafeHandle.cs
- OleDbPermission.cs
- ComponentRenameEvent.cs
- AccessedThroughPropertyAttribute.cs
- DocumentAutomationPeer.cs
- sqlpipe.cs
- _SslStream.cs
- TextEffect.cs
- DataSetFieldSchema.cs
- CopyNodeSetAction.cs
- HttpCacheParams.cs
- XmlUTF8TextWriter.cs
- ResourcePermissionBase.cs
- ObjectPropertyMapping.cs
- DefaultEventAttribute.cs
- MeshGeometry3D.cs
- BamlLocalizableResourceKey.cs
- DbConnectionStringCommon.cs
- WebSysDisplayNameAttribute.cs
- DocumentGridPage.cs
- UrlAuthorizationModule.cs
- CodeDOMUtility.cs
- HttpProtocolReflector.cs
- Point3D.cs
- SmiMetaDataProperty.cs
- WebPartMinimizeVerb.cs
- TextTreeTextElementNode.cs
- AnnotationAuthorChangedEventArgs.cs
- Cursor.cs
- SelfIssuedTokenFactoryCredential.cs
- TextEffectCollection.cs
- MultiView.cs
- MsmqElementBase.cs
- Style.cs
- ImageListStreamer.cs
- Matrix3D.cs
- ConfigurationManagerHelper.cs
- CachingHintValidation.cs