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
- NullableBoolConverter.cs
- CommunicationObjectAbortedException.cs
- ArcSegment.cs
- XPathException.cs
- AppLevelCompilationSectionCache.cs
- linebase.cs
- keycontainerpermission.cs
- DetailsViewPageEventArgs.cs
- PackagePartCollection.cs
- COAUTHIDENTITY.cs
- EntityTypeEmitter.cs
- RightsManagementInformation.cs
- PaginationProgressEventArgs.cs
- ProviderException.cs
- SiteMapNodeCollection.cs
- ContactManager.cs
- CollectionTypeElement.cs
- Win32KeyboardDevice.cs
- SystemIPGlobalStatistics.cs
- Utils.cs
- WebPartZone.cs
- SemanticBasicElement.cs
- SafeHandles.cs
- TraceLog.cs
- SmiConnection.cs
- MetadataItem_Static.cs
- BasicCommandTreeVisitor.cs
- NavigationProperty.cs
- ChooseAction.cs
- ItemCheckedEvent.cs
- IconConverter.cs
- XmlSubtreeReader.cs
- FaultContractAttribute.cs
- BasicCellRelation.cs
- ModelFactory.cs
- PolyLineSegment.cs
- Speller.cs
- TypeUtil.cs
- TypeProvider.cs
- TypeResolvingOptionsAttribute.cs
- UnknownBitmapEncoder.cs
- ObjectDataSourceView.cs
- Rules.cs
- ButtonPopupAdapter.cs
- ReadOnlyAttribute.cs
- MenuItemStyleCollection.cs
- Selection.cs
- MonthChangedEventArgs.cs
- TextLineBreak.cs
- BitmapSizeOptions.cs
- TimeoutHelper.cs
- DataBoundControlDesigner.cs
- OdbcErrorCollection.cs
- Utils.cs
- ReadOnlyHierarchicalDataSource.cs
- CodeDirectionExpression.cs
- BaseTemplateParser.cs
- GridViewEditEventArgs.cs
- PageAdapter.cs
- TakeQueryOptionExpression.cs
- FirstMatchCodeGroup.cs
- Form.cs
- FixedDSBuilder.cs
- EventMappingSettings.cs
- DetailsViewInsertEventArgs.cs
- AddDataControlFieldDialog.cs
- ListControl.cs
- DesignerSerializationOptionsAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DataTableCollection.cs
- ResourceDisplayNameAttribute.cs
- TerminatorSinks.cs
- BindingManagerDataErrorEventArgs.cs
- PenLineJoinValidation.cs
- AttachmentService.cs
- DesignerActionUIStateChangeEventArgs.cs
- SystemInfo.cs
- Span.cs
- AppSettingsExpressionEditor.cs
- MarshalByRefObject.cs
- _WebProxyDataBuilder.cs
- odbcmetadatacollectionnames.cs
- ResourceDictionaryCollection.cs
- WeakRefEnumerator.cs
- ApplicationDirectory.cs
- BeginEvent.cs
- DefaultExpression.cs
- Attachment.cs
- CodeAccessPermission.cs
- _NegotiateClient.cs
- EntryPointNotFoundException.cs
- Relationship.cs
- UserPersonalizationStateInfo.cs
- storepermissionattribute.cs
- PasswordRecovery.cs
- Propagator.JoinPropagator.cs
- PropertyTabAttribute.cs
- cookieexception.cs
- UnsafeNativeMethodsCLR.cs
- ItemsChangedEventArgs.cs