Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //When overridden in a derived class, sets a license key for the specified type. ///// 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- Size3DValueSerializer.cs
- StrongNameKeyPair.cs
- ChtmlLinkAdapter.cs
- ServiceAuthorizationManager.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SafeArchiveContext.cs
- HttpHandlerActionCollection.cs
- RpcResponse.cs
- TimeIntervalCollection.cs
- SubMenuStyleCollectionEditor.cs
- TextViewSelectionProcessor.cs
- HttpListenerRequest.cs
- AlphabeticalEnumConverter.cs
- TypeReference.cs
- newinstructionaction.cs
- ActivityExecutorOperation.cs
- OperandQuery.cs
- HostingPreferredMapPath.cs
- DataMemberConverter.cs
- InfoCardBaseException.cs
- ExtenderProviderService.cs
- EventSourceCreationData.cs
- SelectionPattern.cs
- TrackingServices.cs
- OdbcParameter.cs
- SchemaCollectionCompiler.cs
- hresults.cs
- WindowsServiceCredential.cs
- BroadcastEventHelper.cs
- EncodingDataItem.cs
- MexBindingBindingCollectionElement.cs
- WindowInteropHelper.cs
- ArcSegment.cs
- Polygon.cs
- PropertyCondition.cs
- BaseResourcesBuildProvider.cs
- SchemaMapping.cs
- EventDriven.cs
- Mappings.cs
- UTF7Encoding.cs
- ChildrenQuery.cs
- DeferredRunTextReference.cs
- ViewStateModeByIdAttribute.cs
- TypeLibConverter.cs
- shaperfactoryquerycachekey.cs
- XmlArrayAttribute.cs
- WindowsPrincipal.cs
- SizeAnimation.cs
- StackSpiller.Bindings.cs
- SmiEventSink.cs
- _DigestClient.cs
- CategoriesDocument.cs
- Shape.cs
- OdbcUtils.cs
- ValueConversionAttribute.cs
- FlagsAttribute.cs
- QueryAccessibilityHelpEvent.cs
- FormatVersion.cs
- CryptographicAttribute.cs
- DataControlFieldCell.cs
- ConfigurationErrorsException.cs
- SQLRoleProvider.cs
- DeflateEmulationStream.cs
- ModelPropertyDescriptor.cs
- Color.cs
- Matrix3DConverter.cs
- CommonDialog.cs
- ErrorWrapper.cs
- EventRecordWrittenEventArgs.cs
- OptimizedTemplateContent.cs
- TakeQueryOptionExpression.cs
- Int32Storage.cs
- AdornerLayer.cs
- EastAsianLunisolarCalendar.cs
- GeneralTransform.cs
- SequenceNumber.cs
- SizeLimitedCache.cs
- DataGridHelper.cs
- IsolatedStorageFilePermission.cs
- DependencyPropertyKind.cs
- OracleNumber.cs
- DefaultValidator.cs
- LicenseManager.cs
- BehaviorEditorPart.cs
- CodeCommentStatement.cs
- AllowedAudienceUriElementCollection.cs
- PersonalizationEntry.cs
- NameNode.cs
- MimeObjectFactory.cs
- _CookieModule.cs
- OptionalMessageQuery.cs
- ConsoleCancelEventArgs.cs
- SyndicationSerializer.cs
- DataGridCommandEventArgs.cs
- CompiledIdentityConstraint.cs
- BindingMemberInfo.cs
- TiffBitmapDecoder.cs
- CommandDevice.cs
- BitmapEffectInputConnector.cs
- SqlEnums.cs