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
- WsatServiceAddress.cs
- Vector3DIndependentAnimationStorage.cs
- CustomDictionarySources.cs
- RuleConditionDialog.Designer.cs
- TextElement.cs
- HtmlSelect.cs
- XsltFunctions.cs
- ObjectDataSourceStatusEventArgs.cs
- WindowsEditBox.cs
- PathFigureCollection.cs
- ClientApiGenerator.cs
- CustomErrorCollection.cs
- SqlFileStream.cs
- TraceHandler.cs
- SoapExtensionReflector.cs
- MDIControlStrip.cs
- AnnotationComponentChooser.cs
- RMEnrollmentPage1.cs
- NameSpaceExtractor.cs
- HeaderedContentControl.cs
- PreProcessor.cs
- BufferedGraphics.cs
- DummyDataSource.cs
- WorkflowPersistenceService.cs
- FontUnitConverter.cs
- XmlSchema.cs
- MetadataItemEmitter.cs
- EncoderBestFitFallback.cs
- WebCategoryAttribute.cs
- NullableConverter.cs
- RelatedPropertyManager.cs
- ReflectionPermission.cs
- SafeFileHandle.cs
- OleTxTransactionInfo.cs
- XmlSubtreeReader.cs
- MsmqHostedTransportManager.cs
- TakeQueryOptionExpression.cs
- NetMsmqSecurityElement.cs
- BoolExpressionVisitors.cs
- SQLDecimal.cs
- GeneralTransform2DTo3DTo2D.cs
- Lookup.cs
- ToolStripDropDownClosingEventArgs.cs
- XmlSchema.cs
- Baml2006KnownTypes.cs
- FindSimilarActivitiesVerb.cs
- TableColumn.cs
- WorkflowMessageEventHandler.cs
- EndpointConfigContainer.cs
- RemoteWebConfigurationHostServer.cs
- CreateUserWizard.cs
- Array.cs
- IItemContainerGenerator.cs
- TimerElapsedEvenArgs.cs
- MarkupObject.cs
- PersonalizationStateInfo.cs
- SBCSCodePageEncoding.cs
- XslTransform.cs
- TextRunTypographyProperties.cs
- DocumentViewerBase.cs
- DelegateTypeInfo.cs
- WorkflowControlEndpoint.cs
- SHA384Managed.cs
- ButtonRenderer.cs
- DiagnosticStrings.cs
- CalendarButton.cs
- CustomAttributeBuilder.cs
- TargetParameterCountException.cs
- Nullable.cs
- basenumberconverter.cs
- WebDisplayNameAttribute.cs
- NetStream.cs
- RepeaterCommandEventArgs.cs
- Stroke2.cs
- WebRequestModuleElementCollection.cs
- ValidatorCollection.cs
- AssociationSetEnd.cs
- ComPlusAuthorization.cs
- FrameworkRichTextComposition.cs
- DiffuseMaterial.cs
- Walker.cs
- _TimerThread.cs
- StrokeCollectionDefaultValueFactory.cs
- SoapElementAttribute.cs
- ResizeGrip.cs
- DeobfuscatingStream.cs
- ScriptBehaviorDescriptor.cs
- HttpConfigurationSystem.cs
- KnownTypeHelper.cs
- SortDescriptionCollection.cs
- nulltextcontainer.cs
- ReadWriteControlDesigner.cs
- BitmapEffectDrawing.cs
- MexBindingBindingCollectionElement.cs
- DataStreams.cs
- XmlSchemaComplexContent.cs
- ServicesSection.cs
- LedgerEntry.cs
- NavigationFailedEventArgs.cs
- SelectorAutomationPeer.cs