Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ScrollBarRenderer.cs
- DependencySource.cs
- OLEDB_Util.cs
- XmlAttribute.cs
- FixedSOMContainer.cs
- StylusCaptureWithinProperty.cs
- ImageCodecInfo.cs
- RowParagraph.cs
- GeometryDrawing.cs
- WebScriptEnablingElement.cs
- MappedMetaModel.cs
- TabControlAutomationPeer.cs
- baseaxisquery.cs
- RedirectionProxy.cs
- DispatcherSynchronizationContext.cs
- CorePropertiesFilter.cs
- Int32Collection.cs
- WindowsFormsEditorServiceHelper.cs
- Listbox.cs
- DataContractAttribute.cs
- TemplateAction.cs
- SqlClientMetaDataCollectionNames.cs
- AssemblyEvidenceFactory.cs
- FixedFlowMap.cs
- Ipv6Element.cs
- RoleGroupCollectionEditor.cs
- JoinTreeNode.cs
- CodeBinaryOperatorExpression.cs
- DataExpression.cs
- RawUIStateInputReport.cs
- HttpCookiesSection.cs
- ObjectSet.cs
- NamespaceDisplay.xaml.cs
- SecurityHelper.cs
- DurationConverter.cs
- AssemblyCollection.cs
- SqlServices.cs
- LoaderAllocator.cs
- CursorConverter.cs
- DataSourceSelectArguments.cs
- ListControlConvertEventArgs.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ConfigsHelper.cs
- AsyncOperationLifetimeManager.cs
- odbcmetadatacollectionnames.cs
- CodeParameterDeclarationExpression.cs
- UriSchemeKeyedCollection.cs
- IntPtr.cs
- FileLogRecord.cs
- GridViewCancelEditEventArgs.cs
- CapacityStreamGeometryContext.cs
- SymLanguageType.cs
- ProfileGroupSettings.cs
- SizeLimitedCache.cs
- Filter.cs
- MsmqIntegrationInputChannel.cs
- PartialClassGenerationTaskInternal.cs
- TypefaceMap.cs
- DataGridItemAutomationPeer.cs
- FillErrorEventArgs.cs
- unsafeIndexingFilterStream.cs
- StoreAnnotationsMap.cs
- DbConnectionPoolCounters.cs
- ResolveNameEventArgs.cs
- DataGridCheckBoxColumn.cs
- DataGridPreparingCellForEditEventArgs.cs
- DataGridColumnCollection.cs
- DesignerLinkAdapter.cs
- InstanceNormalEvent.cs
- ellipse.cs
- GridLengthConverter.cs
- Soap12ProtocolImporter.cs
- SystemWebCachingSectionGroup.cs
- TemplatePagerField.cs
- unsafenativemethodsother.cs
- Event.cs
- AnnotationHelper.cs
- ConsoleEntryPoint.cs
- LogExtent.cs
- NameValueSectionHandler.cs
- RegistryKey.cs
- TextChange.cs
- ScrollBarAutomationPeer.cs
- SiteMapDataSource.cs
- TreeNodeBinding.cs
- SocketInformation.cs
- CellParaClient.cs
- MediaContextNotificationWindow.cs
- FieldToken.cs
- WriteableOnDemandStream.cs
- XamlPointCollectionSerializer.cs
- PackageRelationshipCollection.cs
- ConnectionProviderAttribute.cs
- DataContractSerializerFaultFormatter.cs
- LiteralControl.cs
- rsa.cs
- HotSpotCollectionEditor.cs
- ErrorWebPart.cs
- ExceptionDetail.cs
- LabelInfo.cs