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
- TreeNodeBindingCollection.cs
- DBSqlParserColumn.cs
- OdbcException.cs
- DbParameterCollectionHelper.cs
- FileDialogCustomPlaces.cs
- EncryptedKey.cs
- COMException.cs
- SerializationFieldInfo.cs
- BaseDataList.cs
- RequestCacheManager.cs
- RewritingPass.cs
- MemberRelationshipService.cs
- Vector3DAnimationBase.cs
- MessageSecurityVersionConverter.cs
- OwnerDrawPropertyBag.cs
- HttpWriter.cs
- PolicyChain.cs
- TraceEventCache.cs
- CookieParameter.cs
- unsafenativemethodsother.cs
- ListenerConnectionModeReader.cs
- StickyNoteHelper.cs
- LinkLabel.cs
- XmlDocument.cs
- BinaryCommonClasses.cs
- SqlDataSourceView.cs
- TextEditor.cs
- MobileControlsSection.cs
- WebProxyScriptElement.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- CompositionTarget.cs
- SafeRegistryHandle.cs
- SolidBrush.cs
- BlockCollection.cs
- MessageProtectionOrder.cs
- AttributeEmitter.cs
- ResourceDescriptionAttribute.cs
- LightweightCodeGenerator.cs
- PageTheme.cs
- CodeNamespaceImportCollection.cs
- MouseCaptureWithinProperty.cs
- Native.cs
- PagesSection.cs
- UnsettableComboBox.cs
- EdmComplexTypeAttribute.cs
- RtfToXamlReader.cs
- UrlMappingCollection.cs
- VectorConverter.cs
- EntityDataSourceContextDisposingEventArgs.cs
- MenuEventArgs.cs
- SectionXmlInfo.cs
- SmiTypedGetterSetter.cs
- PointLight.cs
- WinEventTracker.cs
- Command.cs
- DocumentDesigner.cs
- UnsafeNativeMethodsPenimc.cs
- XamlStream.cs
- AssemblyBuilder.cs
- ToolBar.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CodeLinePragma.cs
- CacheEntry.cs
- BuildTopDownAttribute.cs
- AutoCompleteStringCollection.cs
- WebPartMovingEventArgs.cs
- DataGridViewRowEventArgs.cs
- XamlSerializerUtil.cs
- HtmlInputCheckBox.cs
- UserMapPath.cs
- Pkcs7Recipient.cs
- SafeTimerHandle.cs
- SHA512CryptoServiceProvider.cs
- MsmqHostedTransportManager.cs
- ECDiffieHellmanCng.cs
- InkSerializer.cs
- X509AsymmetricSecurityKey.cs
- AttachInfo.cs
- OperationCanceledException.cs
- JapaneseCalendar.cs
- MailSettingsSection.cs
- SiteMapNode.cs
- InfoCard.cs
- ToolStripManager.cs
- DateTimeValueSerializerContext.cs
- AspNetHostingPermission.cs
- EnterpriseServicesHelper.cs
- DataControlImageButton.cs
- TypeNameConverter.cs
- ModuleBuilder.cs
- CodeSubDirectory.cs
- ObjectStateFormatter.cs
- OracleConnection.cs
- SchemaTableOptionalColumn.cs
- NavigationProgressEventArgs.cs
- AutomationPropertyInfo.cs
- SymLanguageVendor.cs
- FixedSOMLineCollection.cs
- HandlerMappingMemo.cs
- NamespaceImport.cs