Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PolicyException.cs
- RequestSecurityTokenSerializer.cs
- XmlSequenceWriter.cs
- AsyncPostBackErrorEventArgs.cs
- MailAddress.cs
- NameValueCollection.cs
- CanonicalFontFamilyReference.cs
- AssemblySettingAttributes.cs
- ColumnCollection.cs
- X509Certificate2.cs
- TypeForwardedToAttribute.cs
- ProvidePropertyAttribute.cs
- AppDomainProtocolHandler.cs
- Screen.cs
- TcpProcessProtocolHandler.cs
- MasterPageBuildProvider.cs
- ParserExtension.cs
- DriveNotFoundException.cs
- IndividualDeviceConfig.cs
- WebConfigurationHostFileChange.cs
- ProxyGenerationError.cs
- ImmutableObjectAttribute.cs
- HotSpot.cs
- coordinator.cs
- RtfNavigator.cs
- SQLBytes.cs
- BuildManagerHost.cs
- ViewCellSlot.cs
- DynamicRenderer.cs
- TextElementEnumerator.cs
- XmlElementElementCollection.cs
- _NestedMultipleAsyncResult.cs
- OleDbErrorCollection.cs
- dtdvalidator.cs
- GeneralTransform3D.cs
- ListViewGroup.cs
- PassportAuthenticationEventArgs.cs
- StringBuilder.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ResourceProperty.cs
- ResourcePool.cs
- EnlistmentState.cs
- ToolboxItemAttribute.cs
- dataprotectionpermission.cs
- SignatureGenerator.cs
- PolicyStatement.cs
- TimeSpanParse.cs
- List.cs
- SafeFileHandle.cs
- DecimalStorage.cs
- FaultDesigner.cs
- SynchronizationLockException.cs
- TextBoxLine.cs
- ValidationErrorEventArgs.cs
- ContextMenuStripGroupCollection.cs
- EventLogHandle.cs
- AnnotationResourceChangedEventArgs.cs
- ParamArrayAttribute.cs
- ButtonBaseAutomationPeer.cs
- EventRecord.cs
- BaseTemplateBuildProvider.cs
- Timer.cs
- NonParentingControl.cs
- FileVersion.cs
- CacheForPrimitiveTypes.cs
- RuntimeEnvironment.cs
- SettingsPropertyValue.cs
- FormattedText.cs
- RuleSettingsCollection.cs
- PolicyStatement.cs
- Aes.cs
- HostingPreferredMapPath.cs
- OptimalBreakSession.cs
- InputLanguageManager.cs
- DataListItem.cs
- Set.cs
- BrowserInteropHelper.cs
- SQLBytes.cs
- DataGridTextBox.cs
- FileDialogPermission.cs
- DoubleAnimationUsingPath.cs
- SqlFlattener.cs
- CodeComment.cs
- ExtendedPropertyDescriptor.cs
- HeaderUtility.cs
- Int32Storage.cs
- Geometry.cs
- WorkflowControlEndpoint.cs
- ToolTip.cs
- NavigationPropertySingletonExpression.cs
- XmlUtf8RawTextWriter.cs
- ApplicationId.cs
- BamlStream.cs
- LockRecursionException.cs
- NavigationService.cs
- PerformanceCounterTraceRecord.cs
- ProviderManager.cs
- ParseElement.cs
- DataGrid.cs
- BevelBitmapEffect.cs