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
- UriSection.cs
- PageParserFilter.cs
- SystemGatewayIPAddressInformation.cs
- InputLanguage.cs
- AuthenticatedStream.cs
- HierarchicalDataBoundControlAdapter.cs
- IntSecurity.cs
- TextElementEditingBehaviorAttribute.cs
- RetrieveVirtualItemEventArgs.cs
- XmlValidatingReader.cs
- DbExpressionVisitor.cs
- InvalidEnumArgumentException.cs
- TextBlock.cs
- OpenTypeLayoutCache.cs
- ForeignConstraint.cs
- ImpersonationContext.cs
- AspNetCompatibilityRequirementsAttribute.cs
- ColumnCollection.cs
- List.cs
- StructuredTypeInfo.cs
- FileUtil.cs
- ClientFormsIdentity.cs
- TagMapInfo.cs
- HtmlTableRow.cs
- ChangeTracker.cs
- DataViewSetting.cs
- TransformPattern.cs
- HandlerMappingMemo.cs
- RuntimeConfig.cs
- KeyboardDevice.cs
- EngineSite.cs
- _NestedSingleAsyncResult.cs
- dbdatarecord.cs
- SortAction.cs
- TextEffectCollection.cs
- MatchingStyle.cs
- DbConnectionPool.cs
- InvokeProviderWrapper.cs
- FormView.cs
- AutoCompleteStringCollection.cs
- DbProviderServices.cs
- ContainerControl.cs
- _BaseOverlappedAsyncResult.cs
- StylusSystemGestureEventArgs.cs
- FunctionNode.cs
- SupportingTokenProviderSpecification.cs
- HwndSource.cs
- WebSysDescriptionAttribute.cs
- RightsManagementInformation.cs
- Screen.cs
- OleTxTransaction.cs
- XmlDataImplementation.cs
- InputLanguageCollection.cs
- ValidationEventArgs.cs
- PeerToPeerException.cs
- FontEditor.cs
- WorkflowEventArgs.cs
- SqlNotificationEventArgs.cs
- JavascriptCallbackMessageInspector.cs
- FontStretch.cs
- EmissiveMaterial.cs
- StreamInfo.cs
- StateDesigner.LayoutSelectionGlyph.cs
- MaskInputRejectedEventArgs.cs
- EntityContainerAssociationSet.cs
- ReachFixedPageSerializer.cs
- shaper.cs
- EventHandlingScope.cs
- InputReportEventArgs.cs
- ObjectListDataBindEventArgs.cs
- PnrpPermission.cs
- GridViewAutomationPeer.cs
- RefreshEventArgs.cs
- LicFileLicenseProvider.cs
- _AutoWebProxyScriptHelper.cs
- SecurityProtocolFactory.cs
- NumberSubstitution.cs
- RestClientProxyHandler.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ConfigurationValue.cs
- SqlDataSourceRefreshSchemaForm.cs
- DbConnectionPoolOptions.cs
- DispatcherObject.cs
- SslStreamSecurityElement.cs
- OledbConnectionStringbuilder.cs
- ActiveXHelper.cs
- ChildTable.cs
- StylusPlugInCollection.cs
- TabControlEvent.cs
- LicenseManager.cs
- _SslState.cs
- DoubleLinkListEnumerator.cs
- SettingsSavedEventArgs.cs
- CodeNamespace.cs
- WebBrowserHelper.cs
- AssociatedControlConverter.cs
- WindowsRichEdit.cs
- EUCJPEncoding.cs
- SizeChangedInfo.cs
- QueryCorrelationInitializer.cs