Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AuthorizationSection.cs
- FixedSOMElement.cs
- FormatterServices.cs
- ArithmeticException.cs
- WebPartCatalogCloseVerb.cs
- AsyncStreamReader.cs
- PersistChildrenAttribute.cs
- ToolStripOverflow.cs
- Throw.cs
- DragEvent.cs
- TabletDevice.cs
- IntSecurity.cs
- AutoGeneratedFieldProperties.cs
- Int16Animation.cs
- MenuAutoFormat.cs
- ChoiceConverter.cs
- SemanticResolver.cs
- XPathBuilder.cs
- DocumentViewerAutomationPeer.cs
- AlternateView.cs
- ScalarRestriction.cs
- TextView.cs
- DeploymentSection.cs
- ValidationErrorInfo.cs
- CollaborationHelperFunctions.cs
- UInt64.cs
- CommentEmitter.cs
- ErrorHandler.cs
- ControlCollection.cs
- UnionCqlBlock.cs
- CultureInfoConverter.cs
- PublishLicense.cs
- IItemProperties.cs
- AssemblyCache.cs
- IInstanceTable.cs
- ITextView.cs
- X509AudioLogo.cs
- WindowsFormsDesignerOptionService.cs
- TrailingSpaceComparer.cs
- SmiRequestExecutor.cs
- WsatServiceCertificate.cs
- RegexCompilationInfo.cs
- ExternalException.cs
- UnsafeNetInfoNativeMethods.cs
- FlowDocumentReaderAutomationPeer.cs
- ServiceContractDetailViewControl.cs
- WindowsListViewItemCheckBox.cs
- HandlerElement.cs
- BooleanConverter.cs
- CompilationUtil.cs
- Thickness.cs
- BitmapMetadata.cs
- SQLStringStorage.cs
- CompilerHelpers.cs
- IteratorFilter.cs
- UriExt.cs
- InfoCardKeyedHashAlgorithm.cs
- ConsoleCancelEventArgs.cs
- WebRequest.cs
- SafeWaitHandle.cs
- ThreadAttributes.cs
- OdbcCommand.cs
- SchemaAttDef.cs
- InstanceDataCollectionCollection.cs
- RenderData.cs
- DecimalConverter.cs
- XmlIncludeAttribute.cs
- SharedStatics.cs
- OleAutBinder.cs
- MasterPage.cs
- InputBinder.cs
- ByteStream.cs
- RestHandler.cs
- EntityDataSourceWrapper.cs
- BulletDecorator.cs
- SpotLight.cs
- WorkflowInlining.cs
- PolyBezierSegmentFigureLogic.cs
- PasswordTextContainer.cs
- XmlUtf8RawTextWriter.cs
- ButtonChrome.cs
- TypeSystem.cs
- ServiceBehaviorAttribute.cs
- ListViewUpdateEventArgs.cs
- Rect3DValueSerializer.cs
- Dispatcher.cs
- XmlTextWriter.cs
- _DynamicWinsockMethods.cs
- WindowsTokenRoleProvider.cs
- Error.cs
- HttpCookiesSection.cs
- InvokeProviderWrapper.cs
- ProgressBarRenderer.cs
- ProviderConnectionPoint.cs
- PermissionSetTriple.cs
- RestHandler.cs
- AttributeCollection.cs
- ThreadAttributes.cs
- NativeWindow.cs
- Cursor.cs