Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LicenseContext.cs / 1305376 / 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
- ConfigXmlElement.cs
- XpsPackagingPolicy.cs
- GridViewCellAutomationPeer.cs
- unsafenativemethodsother.cs
- BridgeDataReader.cs
- X509Certificate2Collection.cs
- RowParagraph.cs
- ListViewItem.cs
- TargetParameterCountException.cs
- Hyperlink.cs
- WinInetCache.cs
- SystemInfo.cs
- DataServices.cs
- XmlSchemaSimpleTypeUnion.cs
- TextTreeInsertUndoUnit.cs
- PreloadedPackages.cs
- PerformanceCounters.cs
- Timer.cs
- ListChangedEventArgs.cs
- GridViewUpdateEventArgs.cs
- PropertyEmitter.cs
- SessionEndedEventArgs.cs
- ChannelSettingsElement.cs
- Environment.cs
- HttpFileCollection.cs
- CharKeyFrameCollection.cs
- ImmutableObjectAttribute.cs
- ElementProxy.cs
- AppSecurityManager.cs
- Mouse.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- EmptyStringExpandableObjectConverter.cs
- RtType.cs
- ConfigDefinitionUpdates.cs
- TdsParserStaticMethods.cs
- HttpResponseInternalWrapper.cs
- HtmlLink.cs
- AesCryptoServiceProvider.cs
- Stack.cs
- XmlSchemaSimpleContent.cs
- HtmlTernaryTree.cs
- UnknownBitmapEncoder.cs
- MemberRelationshipService.cs
- UnsafeNativeMethods.cs
- ColorConverter.cs
- WebPartCancelEventArgs.cs
- EFDataModelProvider.cs
- HighlightVisual.cs
- Preprocessor.cs
- DataGridViewCellEventArgs.cs
- ObjectFullSpanRewriter.cs
- WsdlBuildProvider.cs
- TemplatePartAttribute.cs
- RegistrationServices.cs
- XmlSchemaNotation.cs
- OpCellTreeNode.cs
- ChtmlPageAdapter.cs
- CustomLineCap.cs
- CodeTypeReferenceSerializer.cs
- XmlTextAttribute.cs
- SynchronizedMessageSource.cs
- GradientBrush.cs
- IdnElement.cs
- SafeNativeMethods.cs
- ToolStripPanelRow.cs
- IteratorDescriptor.cs
- RegexCompiler.cs
- MasterPage.cs
- MatrixCamera.cs
- counter.cs
- FilteredXmlReader.cs
- DES.cs
- ResetableIterator.cs
- AutomationProperties.cs
- LinqDataSourceContextData.cs
- FormViewUpdatedEventArgs.cs
- VerticalAlignConverter.cs
- DirectionalLight.cs
- FrameSecurityDescriptor.cs
- LightweightCodeGenerator.cs
- SqlXmlStorage.cs
- CodeAttributeArgument.cs
- _SafeNetHandles.cs
- WindowsProgressbar.cs
- Constants.cs
- MiniLockedBorderGlyph.cs
- _NegoState.cs
- SpotLight.cs
- EnumerableRowCollectionExtensions.cs
- MetadataItemSerializer.cs
- PropertyValidationContext.cs
- Imaging.cs
- SHA1CryptoServiceProvider.cs
- OdbcErrorCollection.cs
- IPEndPoint.cs
- XmlMembersMapping.cs
- TemplateColumn.cs
- StorageSetMapping.cs
- PointConverter.cs
- ObjectDataSourceStatusEventArgs.cs