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
- ClientConfigPaths.cs
- RoutedEventValueSerializer.cs
- CardSpaceException.cs
- ToolStripDropTargetManager.cs
- ResponseStream.cs
- WebServiceReceive.cs
- DataContractSerializerServiceBehavior.cs
- ApplicationDirectoryMembershipCondition.cs
- QueryOperator.cs
- SortQuery.cs
- _ConnectionGroup.cs
- ElementMarkupObject.cs
- StrokeNodeOperations2.cs
- ResourceReader.cs
- GlobalEventManager.cs
- BitConverter.cs
- HtmlInputControl.cs
- XmlDigitalSignatureProcessor.cs
- FtpRequestCacheValidator.cs
- StreamHelper.cs
- HttpCacheParams.cs
- LeaseManager.cs
- DataObject.cs
- ProtectedConfigurationSection.cs
- XhtmlTextWriter.cs
- MostlySingletonList.cs
- SoapProtocolImporter.cs
- WebBrowserSiteBase.cs
- TTSEvent.cs
- control.ime.cs
- TextElementCollectionHelper.cs
- TypedElement.cs
- BaseValidator.cs
- StreamSecurityUpgradeInitiatorBase.cs
- TableParagraph.cs
- ILGenerator.cs
- CompositeCollection.cs
- FamilyTypefaceCollection.cs
- sqlstateclientmanager.cs
- objectquery_tresulttype.cs
- GeometryModel3D.cs
- CaseInsensitiveComparer.cs
- NetworkCredential.cs
- HttpProtocolImporter.cs
- TabletDevice.cs
- RegexMatchCollection.cs
- SmtpSection.cs
- Transform3DCollection.cs
- SmiMetaData.cs
- SingleTagSectionHandler.cs
- EventDescriptorCollection.cs
- x509utils.cs
- RightsManagementPermission.cs
- serverconfig.cs
- Calendar.cs
- HtmlInputCheckBox.cs
- XamlSerializerUtil.cs
- CFStream.cs
- TrustManagerMoreInformation.cs
- XslTransform.cs
- SelectionItemPatternIdentifiers.cs
- ToolBarDesigner.cs
- QilSortKey.cs
- InnerItemCollectionView.cs
- remotingproxy.cs
- HitTestFilterBehavior.cs
- State.cs
- BatchParser.cs
- WSHttpBindingCollectionElement.cs
- TimeIntervalCollection.cs
- UIElement.cs
- BitmapEffectInput.cs
- SspiSecurityTokenProvider.cs
- InitialServerConnectionReader.cs
- OracleException.cs
- SemaphoreSecurity.cs
- UIElementHelper.cs
- XmlSchemaValidator.cs
- SqlDependencyUtils.cs
- BitmapVisualManager.cs
- handlecollector.cs
- RelationshipSet.cs
- ParameterCollection.cs
- AuthorizationRuleCollection.cs
- XmlRawWriterWrapper.cs
- ResourceReferenceExpression.cs
- ObjectDataSourceChooseMethodsPanel.cs
- HashUtility.cs
- CodeSubDirectoriesCollection.cs
- SplitterCancelEvent.cs
- BufferAllocator.cs
- FindProgressChangedEventArgs.cs
- COSERVERINFO.cs
- InfoCardMetadataExchangeClient.cs
- Renderer.cs
- ObfuscateAssemblyAttribute.cs
- SmtpNtlmAuthenticationModule.cs
- WebSysDescriptionAttribute.cs
- DrawingGroupDrawingContext.cs
- LinqTreeNodeEvaluator.cs