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
- Timeline.cs
- ParamArrayAttribute.cs
- AuthenticationManager.cs
- FactoryGenerator.cs
- xmlsaver.cs
- SafeUserTokenHandle.cs
- DesignerActionVerbList.cs
- DescendantQuery.cs
- SafeRightsManagementHandle.cs
- SpinLock.cs
- ToolboxCategory.cs
- TextViewSelectionProcessor.cs
- InputReportEventArgs.cs
- OleServicesContext.cs
- AsyncStreamReader.cs
- ComponentDispatcher.cs
- TextContainerHelper.cs
- AnimationClockResource.cs
- Polygon.cs
- StateItem.cs
- PrivilegeNotHeldException.cs
- DescriptionAttribute.cs
- ConfigurationElementCollection.cs
- SoapTypeAttribute.cs
- TdsParserStaticMethods.cs
- DataRelationCollection.cs
- CodeGen.cs
- OleDbCommand.cs
- UriParserTemplates.cs
- CustomCredentialPolicy.cs
- EntityDataSourceContainerNameItem.cs
- DirectoryInfo.cs
- ExpandCollapsePattern.cs
- WebMessageFormatHelper.cs
- VectorAnimation.cs
- SslStreamSecurityElement.cs
- KnownColorTable.cs
- Point.cs
- SafeWaitHandle.cs
- WindowsListViewGroup.cs
- ImageListUtils.cs
- DataError.cs
- EventLogEntryCollection.cs
- ContextMarshalException.cs
- XPathDocument.cs
- HtmlDocument.cs
- xmlglyphRunInfo.cs
- TextModifier.cs
- MailWebEventProvider.cs
- RootNamespaceAttribute.cs
- InputDevice.cs
- BeginStoryboard.cs
- ControlPropertyNameConverter.cs
- SafeLocalAllocation.cs
- LinqDataSourceHelper.cs
- DataObjectAttribute.cs
- AsyncCompletedEventArgs.cs
- SqlUtils.cs
- ObservableDictionary.cs
- SecurityTokenValidationException.cs
- SaveFileDialogDesigner.cs
- ResourceExpression.cs
- WindowsTab.cs
- SQLSingleStorage.cs
- SettingsSection.cs
- Util.cs
- FixUpCollection.cs
- BoundColumn.cs
- OpCopier.cs
- DataView.cs
- ThreadStaticAttribute.cs
- DataGridViewLinkCell.cs
- InputMethod.cs
- EventLogEntryCollection.cs
- EditingCommands.cs
- ReflectEventDescriptor.cs
- RequestCachePolicyConverter.cs
- ModifyActivitiesPropertyDescriptor.cs
- ComplexPropertyEntry.cs
- TagPrefixInfo.cs
- StickyNoteContentControl.cs
- PassportIdentity.cs
- HttpGetServerProtocol.cs
- StringValueSerializer.cs
- ToolStripSystemRenderer.cs
- XmlArrayItemAttribute.cs
- SoapConverter.cs
- FormViewUpdatedEventArgs.cs
- WindowsFormsLinkLabel.cs
- DataColumnChangeEvent.cs
- GPStream.cs
- IPEndPoint.cs
- SqlGenerator.cs
- WebPartHeaderCloseVerb.cs
- LinkedResourceCollection.cs
- ControlAdapter.cs
- coordinatorfactory.cs
- DeploymentSection.cs
- ReflectionUtil.cs
- OrderToken.cs