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
- WmfPlaceableFileHeader.cs
- UnSafeCharBuffer.cs
- DrawListViewColumnHeaderEventArgs.cs
- GetLedgerEntryForRecipientRequest.cs
- BeginStoryboard.cs
- WaitHandle.cs
- BamlLocalizationDictionary.cs
- ConfigurationValidatorAttribute.cs
- AttributeCollection.cs
- _SafeNetHandles.cs
- StrokeCollection2.cs
- ExceptionRoutedEventArgs.cs
- VisualStyleTypesAndProperties.cs
- CorruptingExceptionCommon.cs
- ReflectEventDescriptor.cs
- SecurityRequiresReviewAttribute.cs
- SystemResources.cs
- DotExpr.cs
- TimeSpanValidator.cs
- _NegoState.cs
- __Filters.cs
- DocumentXPathNavigator.cs
- ToolStripSplitButton.cs
- WaitForChangedResult.cs
- KeyValueConfigurationCollection.cs
- ImplicitInputBrush.cs
- BlockUIContainer.cs
- ListItemConverter.cs
- Asn1IntegerConverter.cs
- KeyEventArgs.cs
- DiscoveryOperationContext.cs
- DataContractSet.cs
- XmlILIndex.cs
- ListViewEditEventArgs.cs
- ResourceAttributes.cs
- Attributes.cs
- FrameworkPropertyMetadata.cs
- FormCollection.cs
- Matrix3D.cs
- BitmapEffectDrawingContextWalker.cs
- InvokeProviderWrapper.cs
- Encoder.cs
- ConnectionPointCookie.cs
- ServiceDescription.cs
- TcpTransportSecurityElement.cs
- Form.cs
- FileDialogCustomPlacesCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- ListViewTableRow.cs
- SafeSecurityHelper.cs
- PathFigureCollection.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- MobileControlDesigner.cs
- SqlDependencyListener.cs
- ScriptControlDescriptor.cs
- XmlReturnReader.cs
- ConnectionPoolManager.cs
- SqlWriter.cs
- WorkBatch.cs
- DataSourceExpression.cs
- safemediahandle.cs
- SolidBrush.cs
- AnnotationComponentManager.cs
- cookieexception.cs
- Simplifier.cs
- SignedXml.cs
- WsdlBuildProvider.cs
- pingexception.cs
- TransformerTypeCollection.cs
- CallContext.cs
- DataKey.cs
- TabletCollection.cs
- DataSourceControlBuilder.cs
- Rule.cs
- _ListenerRequestStream.cs
- WebSysDisplayNameAttribute.cs
- SystemPens.cs
- InvokeGenerator.cs
- DataRowChangeEvent.cs
- CustomErrorCollection.cs
- DesignerInterfaces.cs
- SelectionWordBreaker.cs
- SqlCacheDependencyDatabase.cs
- BamlTreeUpdater.cs
- MediaContextNotificationWindow.cs
- PersistenceParticipant.cs
- IdnMapping.cs
- OperationInvokerBehavior.cs
- QueryStringConverter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FontWeights.cs
- TextPatternIdentifiers.cs
- HwndHostAutomationPeer.cs
- SoapAttributeAttribute.cs
- SourceChangedEventArgs.cs
- util.cs
- DataBindingHandlerAttribute.cs
- ThrowHelper.cs
- PassportAuthentication.cs
- ConfigurationPropertyCollection.cs