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
- ExpandButtonVisibilityConverter.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DiscoveryDocument.cs
- PeerContact.cs
- Expression.cs
- LayeredChannelListener.cs
- UserValidatedEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- DataGridViewRowHeaderCell.cs
- XmlTextReaderImpl.cs
- SelectedCellsChangedEventArgs.cs
- XmlSerializerFactory.cs
- Enum.cs
- MissingMemberException.cs
- xamlnodes.cs
- UmAlQuraCalendar.cs
- ConstructorNeedsTagAttribute.cs
- oledbmetadatacolumnnames.cs
- UnknownWrapper.cs
- WebBrowserNavigatedEventHandler.cs
- ReversePositionQuery.cs
- validationstate.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TrackingWorkflowEventArgs.cs
- Package.cs
- ConfigurationConverterBase.cs
- StateManagedCollection.cs
- ColumnMapTranslator.cs
- followingquery.cs
- SymbolType.cs
- StylusButtonCollection.cs
- DoWorkEventArgs.cs
- SchemaCollectionCompiler.cs
- ParameterElement.cs
- LocationReferenceEnvironment.cs
- PointLight.cs
- Simplifier.cs
- PassportAuthenticationModule.cs
- DynamicValidator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ArrayElementGridEntry.cs
- PageBuildProvider.cs
- NullExtension.cs
- QilPatternFactory.cs
- D3DImage.cs
- TextHidden.cs
- FrameworkTemplate.cs
- EntityKey.cs
- DynamicExpression.cs
- SqlClientFactory.cs
- FileDialog_Vista_Interop.cs
- GcSettings.cs
- XmlSchemaNotation.cs
- contentDescriptor.cs
- TextDecorationCollection.cs
- DataGrid.cs
- DisplayNameAttribute.cs
- ManualResetEventSlim.cs
- DbConnectionInternal.cs
- DataServiceRequestOfT.cs
- GlobalizationSection.cs
- CompilationLock.cs
- AttachmentService.cs
- XmlSchemaSubstitutionGroup.cs
- webeventbuffer.cs
- WindowsBrush.cs
- SqlParameter.cs
- PropertyNames.cs
- DES.cs
- XmlSchemaAnnotated.cs
- ActiveXContainer.cs
- _RequestLifetimeSetter.cs
- StringWriter.cs
- ModuleElement.cs
- DragStartedEventArgs.cs
- COM2EnumConverter.cs
- MessageSmuggler.cs
- GenericXmlSecurityToken.cs
- CodeTypeReferenceExpression.cs
- WindowsListViewScroll.cs
- MetadataArtifactLoaderCompositeResource.cs
- StringResourceManager.cs
- SafeThreadHandle.cs
- GlyphRun.cs
- PeerNearMe.cs
- XslAstAnalyzer.cs
- JoinElimination.cs
- BlockUIContainer.cs
- DataPagerFieldCommandEventArgs.cs
- FrameAutomationPeer.cs
- SolidColorBrush.cs
- InsufficientMemoryException.cs
- FixedPage.cs
- SafeNativeMethodsOther.cs
- _NTAuthentication.cs
- WebColorConverter.cs
- HttpWriter.cs
- LoginUtil.cs
- PropertyDescriptorComparer.cs
- RangeValuePattern.cs