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
- StoreContentChangedEventArgs.cs
- ParentQuery.cs
- String.cs
- _UriSyntax.cs
- ObjectComplexPropertyMapping.cs
- DbConnectionPoolIdentity.cs
- SafeFileMappingHandle.cs
- ConsoleEntryPoint.cs
- CapiHashAlgorithm.cs
- SymmetricAlgorithm.cs
- LocalizableResourceBuilder.cs
- LineSegment.cs
- VisualStyleInformation.cs
- WSSecurityJan2004.cs
- SystemThemeKey.cs
- InertiaExpansionBehavior.cs
- ProtectedConfiguration.cs
- SignatureDescription.cs
- Transactions.cs
- ProjectionPruner.cs
- QuaternionAnimation.cs
- ConnectivityStatus.cs
- SqlDataSourceEnumerator.cs
- XmlNodeChangedEventArgs.cs
- NameValueConfigurationCollection.cs
- unitconverter.cs
- ListComponentEditor.cs
- DesignTimeVisibleAttribute.cs
- QueryCacheKey.cs
- StringWriter.cs
- DeploymentExceptionMapper.cs
- DurableInstanceProvider.cs
- GridViewEditEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- ComponentDispatcherThread.cs
- ConnectionStringSettings.cs
- X509CertificateValidator.cs
- ListBox.cs
- ASCIIEncoding.cs
- ExtensibleClassFactory.cs
- AttributeAction.cs
- XsdDuration.cs
- ConfigurationFileMap.cs
- QuaternionAnimationUsingKeyFrames.cs
- Viewport3DVisual.cs
- TcpSocketManager.cs
- XmlNamespaceMapping.cs
- TraceSource.cs
- WorkflowWebHostingModule.cs
- DocumentApplication.cs
- PathSegment.cs
- PrintController.cs
- XsdDataContractExporter.cs
- PropertyTab.cs
- DataGridToolTip.cs
- MsmqIntegrationProcessProtocolHandler.cs
- XmlSerializerOperationBehavior.cs
- OlePropertyStructs.cs
- WindowsListViewScroll.cs
- MemberAccessException.cs
- CodeIdentifier.cs
- EntityDataSourceWrapperCollection.cs
- BindingWorker.cs
- TextElementEnumerator.cs
- UserControlParser.cs
- ChangePassword.cs
- SecurityTraceRecordHelper.cs
- RepeatButtonAutomationPeer.cs
- DataSourceCacheDurationConverter.cs
- DrawListViewItemEventArgs.cs
- DrawingAttributeSerializer.cs
- TreeNodeBindingCollection.cs
- ProfileService.cs
- Matrix.cs
- TextProperties.cs
- Polyline.cs
- DataGridColumnFloatingHeader.cs
- DataSourceCollectionBase.cs
- CurrencyManager.cs
- XmlMtomWriter.cs
- ConfigsHelper.cs
- Repeater.cs
- _HelperAsyncResults.cs
- PolicyVersion.cs
- RelationshipFixer.cs
- CheckBoxPopupAdapter.cs
- CustomError.cs
- DataObjectSettingDataEventArgs.cs
- InheritanceContextChangedEventManager.cs
- SchemaReference.cs
- ClientSettings.cs
- TextDocumentView.cs
- ProxyFragment.cs
- GridViewColumnCollection.cs
- UnorderedHashRepartitionStream.cs
- CellNormalizer.cs
- PolicyManager.cs
- ChoiceConverter.cs
- PnrpPeerResolverElement.cs
- CheckPair.cs