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
- ColorConvertedBitmapExtension.cs
- UnsafeNativeMethods.cs
- Automation.cs
- HitTestParameters.cs
- TokenBasedSetEnumerator.cs
- TypeSystem.cs
- Profiler.cs
- RelatedEnd.cs
- EmptyCollection.cs
- InstanceKeyCompleteException.cs
- ExpandCollapseProviderWrapper.cs
- Padding.cs
- Not.cs
- KnownTypes.cs
- ImageButton.cs
- KeyGestureValueSerializer.cs
- COM2IProvidePropertyBuilderHandler.cs
- OptimalTextSource.cs
- ResXResourceSet.cs
- WebPartChrome.cs
- OpCellTreeNode.cs
- PropertiesTab.cs
- Vector3D.cs
- TextElementCollection.cs
- AstNode.cs
- TextAdaptor.cs
- StringCollection.cs
- DesignerEventService.cs
- GeneralTransformGroup.cs
- DataGridLength.cs
- TextBoxLine.cs
- SequentialUshortCollection.cs
- SQLMoneyStorage.cs
- BulletDecorator.cs
- Logging.cs
- GlobalProxySelection.cs
- ClientTargetCollection.cs
- SQLBoolean.cs
- SmtpSection.cs
- ModelVisual3D.cs
- SqlXml.cs
- TextEmbeddedObject.cs
- WindowsBrush.cs
- UnsafeNativeMethods.cs
- SafeRegistryHandle.cs
- CodeDesigner.cs
- TreeNodeBinding.cs
- DLinqAssociationProvider.cs
- Internal.cs
- Int32CollectionConverter.cs
- TemplateManager.cs
- MemberMaps.cs
- CompilerCollection.cs
- Point3D.cs
- BrowserInteropHelper.cs
- SafeEventLogReadHandle.cs
- WebPartEditorOkVerb.cs
- EnumUnknown.cs
- ReadContentAsBinaryHelper.cs
- ServiceMetadataExtension.cs
- ParameterBuilder.cs
- InputLanguageCollection.cs
- TemplateControl.cs
- AttributeEmitter.cs
- infer.cs
- OutputScopeManager.cs
- DropShadowBitmapEffect.cs
- GradientBrush.cs
- ConsoleTraceListener.cs
- FixUp.cs
- EdmProviderManifest.cs
- SqlXml.cs
- StyleXamlTreeBuilder.cs
- ControlBindingsConverter.cs
- StorageAssociationTypeMapping.cs
- SessionPageStateSection.cs
- PolyBezierSegment.cs
- Calendar.cs
- SvcMapFileSerializer.cs
- DataSet.cs
- Pair.cs
- PerfService.cs
- PriorityBinding.cs
- ExpressionVisitorHelpers.cs
- DocumentOutline.cs
- ImageAutomationPeer.cs
- HtmlImage.cs
- MethodSignatureGenerator.cs
- QueuePathDialog.cs
- StringReader.cs
- WebSysDefaultValueAttribute.cs
- SystemTcpStatistics.cs
- MatrixUtil.cs
- CodeRegionDirective.cs
- SymmetricAlgorithm.cs
- XmlSchema.cs
- GreaterThan.cs
- LocalizeDesigner.cs
- EventItfInfo.cs
- FormsAuthenticationUserCollection.cs