Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextBox.cs
- FunctionCommandText.cs
- EntityClassGenerator.cs
- ConnectionOrientedTransportChannelFactory.cs
- FlowLayout.cs
- TcpConnectionPool.cs
- RtfToken.cs
- SiteMapDataSource.cs
- MaskedTextBox.cs
- XsltSettings.cs
- DataGridViewRowsRemovedEventArgs.cs
- DesignerDataSourceView.cs
- WindowsSysHeader.cs
- DCSafeHandle.cs
- ValidationError.cs
- ApplicationBuildProvider.cs
- TextContainerChangeEventArgs.cs
- PlaceHolder.cs
- ContextQuery.cs
- DirtyTextRange.cs
- SemaphoreFullException.cs
- ProxyWebPartManagerDesigner.cs
- EnumerableCollectionView.cs
- CardSpacePolicyElement.cs
- DrawingAttributes.cs
- CapabilitiesAssignment.cs
- arclist.cs
- ContextMenuStrip.cs
- ProfileSettings.cs
- DbDataAdapter.cs
- BitmapMetadataEnumerator.cs
- RoutedEventArgs.cs
- SafeFileHandle.cs
- HTMLTextWriter.cs
- MessageSecurityProtocolFactory.cs
- WriteTimeStream.cs
- PrePostDescendentsWalker.cs
- HttpCookie.cs
- SmiRecordBuffer.cs
- WriteTimeStream.cs
- PageStatePersister.cs
- ResourceManagerWrapper.cs
- TabPanel.cs
- ServiceBusyException.cs
- MailHeaderInfo.cs
- OracleDateTime.cs
- ThicknessKeyFrameCollection.cs
- SingleStorage.cs
- CaretElement.cs
- DCSafeHandle.cs
- State.cs
- TimeSpanSecondsConverter.cs
- WindowsServiceElement.cs
- securitycriticaldataClass.cs
- CacheAxisQuery.cs
- GridViewDeleteEventArgs.cs
- X509CertificateCollection.cs
- EdmRelationshipRoleAttribute.cs
- mediaeventargs.cs
- StringFreezingAttribute.cs
- SqlAggregateChecker.cs
- CodeCatchClause.cs
- HybridObjectCache.cs
- Privilege.cs
- DataObjectFieldAttribute.cs
- SafeFileMappingHandle.cs
- XPathNodeList.cs
- SimpleWebHandlerParser.cs
- InputBinding.cs
- ValidatorCollection.cs
- ResourceCategoryAttribute.cs
- BindingValueChangedEventArgs.cs
- HtmlInputReset.cs
- Symbol.cs
- Thumb.cs
- Image.cs
- TypeViewSchema.cs
- CrossContextChannel.cs
- VersionedStream.cs
- RIPEMD160Managed.cs
- TypeToken.cs
- ObjectMemberMapping.cs
- SessionEndedEventArgs.cs
- Stackframe.cs
- SelectedDatesCollection.cs
- DBSchemaTable.cs
- InheritanceContextChangedEventManager.cs
- MemberHolder.cs
- MissingFieldException.cs
- SelectedCellsCollection.cs
- WindowVisualStateTracker.cs
- DesignerToolStripControlHost.cs
- CommonGetThemePartSize.cs
- ChannelFactoryRefCache.cs
- AssemblyCollection.cs
- DirectoryObjectSecurity.cs
- RoleService.cs
- TreeViewHitTestInfo.cs
- MembershipAdapter.cs
- SchemaLookupTable.cs