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
- ToolStripGrip.cs
- CatalogPartChrome.cs
- ExternalException.cs
- ElementMarkupObject.cs
- TakeQueryOptionExpression.cs
- DataGridColumnHeader.cs
- Signature.cs
- CTreeGenerator.cs
- ReadOnlyPropertyMetadata.cs
- RightsManagementEncryptionTransform.cs
- ZipIOBlockManager.cs
- Helpers.cs
- XmlEntityReference.cs
- FixedHighlight.cs
- MultiView.cs
- XmlDataSourceNodeDescriptor.cs
- RegexNode.cs
- AssociationTypeEmitter.cs
- ColorConvertedBitmap.cs
- ScriptControlManager.cs
- Crypto.cs
- InputScope.cs
- TaskFileService.cs
- MdImport.cs
- X509Chain.cs
- Visual3DCollection.cs
- ProtectedProviderSettings.cs
- UpdateCommand.cs
- OAVariantLib.cs
- Composition.cs
- ThreadExceptionEvent.cs
- ContextItemManager.cs
- Drawing.cs
- ColorInterpolationModeValidation.cs
- HtmlHistory.cs
- LineProperties.cs
- RegexFCD.cs
- UnsafeMethods.cs
- FileLevelControlBuilderAttribute.cs
- CachedBitmap.cs
- UnsafeNativeMethods.cs
- WMICapabilities.cs
- StateValidator.cs
- EditorResources.cs
- CqlParser.cs
- PropertyGridCommands.cs
- StructureChangedEventArgs.cs
- AstTree.cs
- TimeIntervalCollection.cs
- SystemIPInterfaceStatistics.cs
- GroupBoxDesigner.cs
- CqlErrorHelper.cs
- BindingExpressionUncommonField.cs
- Misc.cs
- ObjectListCommandEventArgs.cs
- ViewCellSlot.cs
- HttpCookieCollection.cs
- XmlDataSourceNodeDescriptor.cs
- BitmapEffectInput.cs
- Roles.cs
- WindowsButton.cs
- _ChunkParse.cs
- Deflater.cs
- SecondaryIndex.cs
- PublisherMembershipCondition.cs
- ProfessionalColorTable.cs
- XmlSchemaInfo.cs
- CompositionAdorner.cs
- Switch.cs
- TreeViewEvent.cs
- LabelDesigner.cs
- ValidationRule.cs
- Item.cs
- CurrencyWrapper.cs
- InputReferenceExpression.cs
- NetworkStream.cs
- DocumentationServerProtocol.cs
- ItemContainerGenerator.cs
- SpecialNameAttribute.cs
- _NativeSSPI.cs
- TreeNode.cs
- DataSetUtil.cs
- ImageKeyConverter.cs
- DataGridViewCellCollection.cs
- DictationGrammar.cs
- SystemParameters.cs
- InternalTransaction.cs
- SmtpAuthenticationManager.cs
- EnumerableRowCollectionExtensions.cs
- ExpressionBinding.cs
- Page.cs
- ColumnMap.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- WebReferenceOptions.cs
- GridViewItemAutomationPeer.cs
- ContractComponent.cs
- LinearGradientBrush.cs
- CardSpaceSelector.cs
- PackWebResponse.cs
- IPAddressCollection.cs