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
- Rijndael.cs
- ResourceAttributes.cs
- WindowsListViewGroup.cs
- StaticTextPointer.cs
- tooltip.cs
- EntityProviderFactory.cs
- XmlStreamStore.cs
- BigInt.cs
- AsmxEndpointPickerExtension.cs
- ProcessModule.cs
- ThreadStartException.cs
- AccessDataSource.cs
- MdImport.cs
- PrintEvent.cs
- Transaction.cs
- RuntimeArgumentHandle.cs
- PackageDigitalSignatureManager.cs
- TraceSection.cs
- TextMetrics.cs
- LogSwitch.cs
- ProjectionPruner.cs
- HttpModulesSection.cs
- ProgressBarRenderer.cs
- RetrieveVirtualItemEventArgs.cs
- ObjectHandle.cs
- XmlConvert.cs
- FontFamily.cs
- RegistryPermission.cs
- UIInitializationException.cs
- SendActivityValidator.cs
- SqlDataAdapter.cs
- StickyNote.cs
- RegexFCD.cs
- MultiViewDesigner.cs
- EventEntry.cs
- TraceLevelHelper.cs
- QueueException.cs
- AsyncParams.cs
- Rectangle.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- MessageEncoder.cs
- DiscoveryEndpointValidator.cs
- ExceptionUtil.cs
- Converter.cs
- SiteOfOriginContainer.cs
- UpdatePanelTrigger.cs
- _ListenerResponseStream.cs
- NameNode.cs
- TryCatchDesigner.xaml.cs
- _ConnectionGroup.cs
- DecoderBestFitFallback.cs
- Simplifier.cs
- SamlConstants.cs
- Win32.cs
- FlowDocumentPage.cs
- FieldNameLookup.cs
- FormatVersion.cs
- WinEventWrap.cs
- EntityStoreSchemaFilterEntry.cs
- SHA512.cs
- DefaultProxySection.cs
- RegistryPermission.cs
- ModuleElement.cs
- WindowsButton.cs
- ValidationSummary.cs
- UpdateTranslator.cs
- WebControlAdapter.cs
- LiteralControl.cs
- DbDataSourceEnumerator.cs
- GridViewRow.cs
- HtmlInputFile.cs
- EditorZone.cs
- GlobalDataBindingHandler.cs
- CqlParser.cs
- FileRegion.cs
- ContentType.cs
- GridViewRowCollection.cs
- AggregateNode.cs
- EmptyEnumerator.cs
- Misc.cs
- KoreanCalendar.cs
- PolyBezierSegment.cs
- DataRecordObjectView.cs
- Timer.cs
- XmlArrayAttribute.cs
- FunctionUpdateCommand.cs
- ADMembershipProvider.cs
- NavigationCommands.cs
- CommandSet.cs
- GeneralTransform3DGroup.cs
- EntityConnection.cs
- StaticTextPointer.cs
- EllipseGeometry.cs
- SelectionPattern.cs
- ProcessHost.cs
- ApplyImportsAction.cs
- PlainXmlSerializer.cs
- RotateTransform.cs
- DataGridViewButtonCell.cs
- LocalServiceSecuritySettingsElement.cs