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
- FixedSOMTableCell.cs
- StateDesigner.Layouts.cs
- ProfileSettingsCollection.cs
- EventListener.cs
- EmptyControlCollection.cs
- Translator.cs
- ReflectPropertyDescriptor.cs
- TransmissionStrategy.cs
- XpsPartBase.cs
- SoapParser.cs
- Empty.cs
- DelegateSerializationHolder.cs
- CryptoProvider.cs
- cookie.cs
- ContextActivityUtils.cs
- XmlHierarchyData.cs
- TextModifier.cs
- QilInvokeEarlyBound.cs
- ReferencedCollectionType.cs
- NotifyCollectionChangedEventArgs.cs
- StickyNoteAnnotations.cs
- BitmapCodecInfoInternal.cs
- WebServicesInteroperability.cs
- ValidatedControlConverter.cs
- DesignTimeParseData.cs
- DataSourceCacheDurationConverter.cs
- TPLETWProvider.cs
- DocumentApplicationJournalEntry.cs
- HtmlAnchor.cs
- DataGridViewUtilities.cs
- DesignerOptionService.cs
- PeerCollaboration.cs
- ConfigXmlDocument.cs
- Baml2006ReaderContext.cs
- WindowsImpersonationContext.cs
- ExponentialEase.cs
- EntityDataReader.cs
- InstanceContext.cs
- SHA1.cs
- DaylightTime.cs
- WebPartConnectVerb.cs
- ServiceAuthorizationBehavior.cs
- ReferenceEqualityComparer.cs
- thaishape.cs
- IResourceProvider.cs
- TdsParserStateObject.cs
- UpdatePanelControlTrigger.cs
- DesignerImageAdapter.cs
- WsdlHelpGeneratorElement.cs
- ProxyManager.cs
- Int32Rect.cs
- CompilerParameters.cs
- WebPartCollection.cs
- UInt64Storage.cs
- CalendarTable.cs
- QuaternionAnimationBase.cs
- handlecollector.cs
- WindowsAuthenticationEventArgs.cs
- latinshape.cs
- PropertyPanel.cs
- GlobalizationAssembly.cs
- LayoutEditorPart.cs
- FormsAuthenticationTicket.cs
- RecipientInfo.cs
- Label.cs
- WebPartZoneDesigner.cs
- InternalResources.cs
- FormViewModeEventArgs.cs
- MediaCommands.cs
- KeyedHashAlgorithm.cs
- ConfigurationLocation.cs
- MimeTypePropertyAttribute.cs
- InfoCardAsymmetricCrypto.cs
- ResourcePool.cs
- SiteMapNodeItemEventArgs.cs
- ReferenceEqualityComparer.cs
- SystemFonts.cs
- CachedTypeface.cs
- SecuritySessionSecurityTokenProvider.cs
- DiscoveryEndpointElement.cs
- ping.cs
- DLinqAssociationProvider.cs
- HTTPRemotingHandler.cs
- RuntimeArgumentHandle.cs
- MatrixAnimationUsingPath.cs
- TargetControlTypeAttribute.cs
- RedirectionProxy.cs
- XmlNodeReader.cs
- Parser.cs
- XPathNodePointer.cs
- ComponentGuaranteesAttribute.cs
- SyndicationSerializer.cs
- DockPatternIdentifiers.cs
- ListBindingHelper.cs
- XmlSiteMapProvider.cs
- AnnotationDocumentPaginator.cs
- unitconverter.cs
- SqlCommand.cs
- PointAnimation.cs
- ObjectIDGenerator.cs