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
- WebHttpBindingCollectionElement.cs
- ImageListStreamer.cs
- LOSFormatter.cs
- VScrollBar.cs
- GPRECTF.cs
- PropertiesTab.cs
- SiteMapProvider.cs
- ItemTypeToolStripMenuItem.cs
- TdsParserSafeHandles.cs
- CollectionViewProxy.cs
- HGlobalSafeHandle.cs
- XpsS0ValidatingLoader.cs
- dbdatarecord.cs
- MsmqAppDomainProtocolHandler.cs
- Helpers.cs
- PauseStoryboard.cs
- IsolationInterop.cs
- XamlReaderHelper.cs
- PrintDocument.cs
- SoapDocumentServiceAttribute.cs
- EntryPointNotFoundException.cs
- ThreadStartException.cs
- COM2PropertyBuilderUITypeEditor.cs
- CommentAction.cs
- AssemblyBuilder.cs
- XhtmlBasicPageAdapter.cs
- HttpCookie.cs
- SHA1CryptoServiceProvider.cs
- TextProperties.cs
- Parser.cs
- PtsHelper.cs
- LayoutManager.cs
- PeerCredentialElement.cs
- LiteralLink.cs
- HostSecurityManager.cs
- WeakReferenceEnumerator.cs
- UshortList2.cs
- ShapingEngine.cs
- TypeConverterValueSerializer.cs
- MetadataExchangeBindings.cs
- ParallelTimeline.cs
- Deflater.cs
- AuthenticationServiceManager.cs
- SqlDataSourceStatusEventArgs.cs
- BindingGroup.cs
- CheckBoxAutomationPeer.cs
- IdentifierCollection.cs
- ParsedAttributeCollection.cs
- XPathEmptyIterator.cs
- ChtmlTextWriter.cs
- FontFamilyIdentifier.cs
- CopyAction.cs
- CommentAction.cs
- EntityDataSourceMemberPath.cs
- DrawingBrush.cs
- XmlILCommand.cs
- X509CertificateStore.cs
- peernodestatemanager.cs
- AssemblyInfo.cs
- RepeaterItem.cs
- JavaScriptString.cs
- AddInStore.cs
- TreeNodeBinding.cs
- ProxyWebPartManagerDesigner.cs
- InkPresenter.cs
- ConsumerConnectionPointCollection.cs
- DrawingServices.cs
- Point4D.cs
- BamlBinaryWriter.cs
- SafePointer.cs
- DataReaderContainer.cs
- XsdValidatingReader.cs
- ModelFunction.cs
- FrameworkContentElement.cs
- Hex.cs
- WebPartMinimizeVerb.cs
- TextRangeEdit.cs
- Classification.cs
- CodeCastExpression.cs
- SqlGenericUtil.cs
- TextDecorationCollection.cs
- SqlConnectionString.cs
- DBSqlParserTable.cs
- LocalTransaction.cs
- LinqDataSourceUpdateEventArgs.cs
- BaseInfoTable.cs
- Condition.cs
- Set.cs
- TemplatePropertyEntry.cs
- OracleParameterCollection.cs
- XAMLParseException.cs
- HierarchicalDataBoundControl.cs
- RootBrowserWindowProxy.cs
- RowToFieldTransformer.cs
- BeginStoryboard.cs
- RawTextInputReport.cs
- DataGridViewDataErrorEventArgs.cs
- GridItemCollection.cs
- DocumentPage.cs
- TextDpi.cs