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
- FixedSOMImage.cs
- XamlTemplateSerializer.cs
- Permission.cs
- UseAttributeSetsAction.cs
- ResourceDictionary.cs
- Equal.cs
- DoubleAnimationClockResource.cs
- ArcSegment.cs
- ExtensibleClassFactory.cs
- Point4D.cs
- XmlWrappingWriter.cs
- TCEAdapterGenerator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SharedUtils.cs
- ReflectionPermission.cs
- CommandDesigner.cs
- MissingMethodException.cs
- AutoFocusStyle.xaml.cs
- PointCollection.cs
- HttpDictionary.cs
- ClientBuildManagerCallback.cs
- DataException.cs
- ListChangedEventArgs.cs
- SamlAuthenticationClaimResource.cs
- D3DImage.cs
- MSAANativeProvider.cs
- InstancePersistence.cs
- XmlWrappingReader.cs
- ErrorActivity.cs
- QuaternionAnimation.cs
- WebException.cs
- BoundConstants.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- _NTAuthentication.cs
- AxHostDesigner.cs
- mediaeventargs.cs
- HitTestWithPointDrawingContextWalker.cs
- IRCollection.cs
- SQLByte.cs
- M3DUtil.cs
- SByte.cs
- ReadOnlyCollectionBuilder.cs
- SecurityContext.cs
- DataListItemEventArgs.cs
- xmlglyphRunInfo.cs
- EdmItemCollection.OcAssemblyCache.cs
- DataGridHeaderBorder.cs
- SamlAttributeStatement.cs
- MexHttpsBindingElement.cs
- ConnectionConsumerAttribute.cs
- SimpleHandlerFactory.cs
- InternalResources.cs
- cache.cs
- PathFigureCollection.cs
- Quaternion.cs
- MaskedTextBox.cs
- MimeFormImporter.cs
- XmlSchemaAppInfo.cs
- XmlValueConverter.cs
- SignatureToken.cs
- OutputCacheProfileCollection.cs
- IgnoreSectionHandler.cs
- InvalidCastException.cs
- StoreUtilities.cs
- LinqDataSourceStatusEventArgs.cs
- DefaultTextStore.cs
- MissingFieldException.cs
- StringDictionary.cs
- FontConverter.cs
- EntityKey.cs
- BufferedGraphicsContext.cs
- RoleManagerModule.cs
- DesignerTransaction.cs
- BamlLocalizableResource.cs
- TrayIconDesigner.cs
- StaticTextPointer.cs
- StartUpEventArgs.cs
- DataGridViewCellStyleEditor.cs
- DateTimeSerializationSection.cs
- FormatVersion.cs
- WmpBitmapEncoder.cs
- PropertyOrder.cs
- OleDbSchemaGuid.cs
- BinaryUtilClasses.cs
- GroupBox.cs
- DataGridColumn.cs
- StorageFunctionMapping.cs
- CachingHintValidation.cs
- ModifiableIteratorCollection.cs
- CalendarDay.cs
- Visual.cs
- EmptyElement.cs
- PropertyDescriptor.cs
- ErrorFormatterPage.cs
- Vector3DConverter.cs
- CellQuery.cs
- Bitmap.cs
- TextProperties.cs
- DataTransferEventArgs.cs
- GetWinFXPath.cs