Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / LicenseContext.cs / 1 / 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
- HyperLinkStyle.cs
- IdSpace.cs
- MarkedHighlightComponent.cs
- MembershipPasswordException.cs
- RichTextBoxContextMenu.cs
- BeginStoryboard.cs
- AssociatedControlConverter.cs
- OutputCacheSettings.cs
- ObjectDataSourceStatusEventArgs.cs
- CodeTypeConstructor.cs
- EtwTrace.cs
- BindingValueChangedEventArgs.cs
- NullRuntimeConfig.cs
- QuaternionIndependentAnimationStorage.cs
- SqlDataSourceCommandEventArgs.cs
- HeaderUtility.cs
- UrlAuthorizationModule.cs
- PageCodeDomTreeGenerator.cs
- TransformPattern.cs
- ViewEventArgs.cs
- ExitEventArgs.cs
- Int32Converter.cs
- SqlVersion.cs
- latinshape.cs
- GenerateScriptTypeAttribute.cs
- FaultHandlingFilter.cs
- EnumValidator.cs
- Semaphore.cs
- Internal.cs
- TriggerBase.cs
- HeaderPanel.cs
- TypedElement.cs
- OutputCacheProfileCollection.cs
- StringFreezingAttribute.cs
- PhoneCallDesigner.cs
- TraceContext.cs
- EntityDataSource.cs
- cookie.cs
- CodeMemberEvent.cs
- InputLangChangeRequestEvent.cs
- XmlSchemaSubstitutionGroup.cs
- CommandLibraryHelper.cs
- BitmapInitialize.cs
- SkinBuilder.cs
- SafePEFileHandle.cs
- GridViewCellAutomationPeer.cs
- MemberAssignment.cs
- DriveNotFoundException.cs
- ImmutableClientRuntime.cs
- RoleManagerModule.cs
- documentsequencetextpointer.cs
- PassportPrincipal.cs
- DataServiceHostFactory.cs
- Lasso.cs
- SspiSafeHandles.cs
- FormViewCommandEventArgs.cs
- TemplateBindingExtensionConverter.cs
- PeerOutputChannel.cs
- DrawListViewColumnHeaderEventArgs.cs
- ClientTargetCollection.cs
- LinqDataSourceHelper.cs
- TCEAdapterGenerator.cs
- NativeObjectSecurity.cs
- Span.cs
- Base64WriteStateInfo.cs
- DesigntimeLicenseContextSerializer.cs
- UserControlCodeDomTreeGenerator.cs
- ItemList.cs
- String.cs
- InstanceNormalEvent.cs
- BuildDependencySet.cs
- PagedDataSource.cs
- Binding.cs
- PrinterResolution.cs
- EncryptedPackage.cs
- Point3DCollection.cs
- FileSystemEventArgs.cs
- GeometryHitTestParameters.cs
- ElapsedEventArgs.cs
- ImageListUtils.cs
- DNS.cs
- DataRowExtensions.cs
- X509Utils.cs
- CatalogZoneBase.cs
- StorageAssociationSetMapping.cs
- PageAction.cs
- BoundPropertyEntry.cs
- Dump.cs
- StreamFormatter.cs
- HwndSourceKeyboardInputSite.cs
- EventProviderWriter.cs
- XmlBoundElement.cs
- TypeExtension.cs
- DataSourceCacheDurationConverter.cs
- MatrixTransform.cs
- EdgeModeValidation.cs
- UserControl.cs
- HttpVersion.cs
- EntitySetBaseCollection.cs
- HttpModuleAction.cs