Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }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
- Permission.cs
- DynamicPropertyReader.cs
- xamlnodes.cs
- NavigationProgressEventArgs.cs
- HashAlgorithm.cs
- DBParameter.cs
- SerializationSectionGroup.cs
- OdbcStatementHandle.cs
- ConfigXmlAttribute.cs
- AttributeUsageAttribute.cs
- DefaultValueMapping.cs
- InProcStateClientManager.cs
- XmlBaseReader.cs
- FieldAccessException.cs
- RectangleGeometry.cs
- ToolStripMenuItemCodeDomSerializer.cs
- PageHandlerFactory.cs
- UniformGrid.cs
- X509CertificateValidationMode.cs
- SchemaSetCompiler.cs
- DataControlField.cs
- XmlComment.cs
- ListViewPagedDataSource.cs
- BamlTreeUpdater.cs
- DataSet.cs
- NumberFormatter.cs
- MouseActionValueSerializer.cs
- EpmContentDeSerializerBase.cs
- BinHexDecoder.cs
- MultilineStringConverter.cs
- BuilderPropertyEntry.cs
- EventRoute.cs
- CompiledIdentityConstraint.cs
- Operand.cs
- XPathAncestorQuery.cs
- Button.cs
- LocalBuilder.cs
- WindowsIdentity.cs
- ImageMap.cs
- OleDbParameterCollection.cs
- Terminate.cs
- RtfToXamlLexer.cs
- MediaScriptCommandRoutedEventArgs.cs
- RuleInfoComparer.cs
- NativeMethods.cs
- DataGridColumnCollection.cs
- ScrollBarRenderer.cs
- ActiveXHost.cs
- JournalEntryStack.cs
- LayoutUtils.cs
- TypeAccessException.cs
- ActivityCodeDomReferenceService.cs
- IconHelper.cs
- SystemIcons.cs
- BufferBuilder.cs
- SecurityContextSecurityTokenParameters.cs
- TextViewSelectionProcessor.cs
- StrongNameMembershipCondition.cs
- RelationshipEntry.cs
- StaticFileHandler.cs
- ClipboardProcessor.cs
- MsdtcWrapper.cs
- ColorTranslator.cs
- TextLineResult.cs
- XMLSyntaxException.cs
- FileDetails.cs
- CodeIndexerExpression.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- ErrorRuntimeConfig.cs
- HttpHeaderCollection.cs
- XmlChoiceIdentifierAttribute.cs
- XmlReaderSettings.cs
- ScrollBarRenderer.cs
- SqlCacheDependencyDatabaseCollection.cs
- ToolStripItem.cs
- TransformerInfo.cs
- __TransparentProxy.cs
- FileAuthorizationModule.cs
- XsdBuilder.cs
- DataGridGeneralPage.cs
- LogReserveAndAppendState.cs
- Screen.cs
- StdValidatorsAndConverters.cs
- UntrustedRecipientException.cs
- Bezier.cs
- ConstructorBuilder.cs
- LocalizationParserHooks.cs
- XmlEncoding.cs
- SubpageParaClient.cs
- XhtmlBasicValidatorAdapter.cs
- ConfigurationPropertyCollection.cs
- BamlLocalizableResourceKey.cs
- BindingValueChangedEventArgs.cs
- MultiBindingExpression.cs
- BaseParaClient.cs
- ServiceModelTimeSpanValidator.cs
- MemberProjectionIndex.cs
- ScrollBar.cs
- TableRowCollection.cs
- RawMouseInputReport.cs