Code:
/ DotNET / DotNET / 8.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
- FormViewUpdateEventArgs.cs
- EventLogTraceListener.cs
- FactoryMaker.cs
- SetterBase.cs
- GlobalDataBindingHandler.cs
- FileSystemEventArgs.cs
- _AutoWebProxyScriptWrapper.cs
- ExtensionMethods.cs
- PeerApplication.cs
- EnvironmentPermission.cs
- ToolStripHighContrastRenderer.cs
- CatalogZoneBase.cs
- Polyline.cs
- ProcessModelSection.cs
- OleDbConnectionInternal.cs
- HtmlProps.cs
- XsltFunctions.cs
- safesecurityhelperavalon.cs
- ParserExtension.cs
- dataobject.cs
- ChildTable.cs
- BinaryMethodMessage.cs
- File.cs
- SoapEnvelopeProcessingElement.cs
- MsmqIntegrationInputChannel.cs
- FixUp.cs
- IdentityNotMappedException.cs
- VisualTreeHelper.cs
- DesignerMetadata.cs
- CompiledRegexRunnerFactory.cs
- TextChange.cs
- SplitterDesigner.cs
- WindowsAuthenticationModule.cs
- ProcessHostConfigUtils.cs
- Freezable.cs
- BaseAddressElement.cs
- DataPagerField.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SmiEventSink_DeferedProcessing.cs
- AspProxy.cs
- CLSCompliantAttribute.cs
- ResourceDisplayNameAttribute.cs
- XPathException.cs
- Scheduler.cs
- SkipStoryboardToFill.cs
- GlyphShapingProperties.cs
- XmlNodeChangedEventManager.cs
- WindowsSpinner.cs
- AppDomainUnloadedException.cs
- TimeoutConverter.cs
- BufferedGraphicsContext.cs
- CanonicalXml.cs
- XmlSchemaAny.cs
- UnhandledExceptionEventArgs.cs
- XmlDataProvider.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- WebSysDescriptionAttribute.cs
- IEnumerable.cs
- RawStylusInput.cs
- SQLGuid.cs
- UInt16.cs
- SafeLibraryHandle.cs
- HideDisabledControlAdapter.cs
- QueryCacheEntry.cs
- ApplicationActivator.cs
- BuildProviderCollection.cs
- DataGridViewTextBoxColumn.cs
- ClientCultureInfo.cs
- DataObjectFieldAttribute.cs
- SystemColorTracker.cs
- ISAPIRuntime.cs
- CodePrimitiveExpression.cs
- EdmToObjectNamespaceMap.cs
- PointAnimationClockResource.cs
- SafeLibraryHandle.cs
- DescendantOverDescendantQuery.cs
- SqlMetaData.cs
- VarRemapper.cs
- PropertyEmitterBase.cs
- PictureBox.cs
- MessageBox.cs
- Image.cs
- IsolatedStoragePermission.cs
- IItemContainerGenerator.cs
- BlurEffect.cs
- GridViewAutomationPeer.cs
- DecimalKeyFrameCollection.cs
- ItemsPresenter.cs
- XmlSchemaProviderAttribute.cs
- CodeParameterDeclarationExpression.cs
- ListViewEditEventArgs.cs
- TdsParserStateObject.cs
- QueryResults.cs
- WMICapabilities.cs
- TypeToken.cs
- HttpModuleAction.cs
- RevocationPoint.cs
- RoleServiceManager.cs
- ImageMapEventArgs.cs
- DeploymentSectionCache.cs