Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LicenseContext.cs / 1305376 / 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
- RequestCachePolicy.cs
- mansign.cs
- OrthographicCamera.cs
- Storyboard.cs
- WindowsListViewSubItem.cs
- StringDictionary.cs
- SqlInternalConnectionTds.cs
- ModifierKeysValueSerializer.cs
- TagPrefixCollection.cs
- DataGridSortCommandEventArgs.cs
- XmlElementAttributes.cs
- WebPartEditorCancelVerb.cs
- WorkflowInstanceExtensionProvider.cs
- TextSerializer.cs
- CapacityStreamGeometryContext.cs
- ProcessHostFactoryHelper.cs
- NullableLongMinMaxAggregationOperator.cs
- ObjectView.cs
- DataGridPageChangedEventArgs.cs
- Canvas.cs
- DefaultTextStoreTextComposition.cs
- DataObjectSettingDataEventArgs.cs
- XmlArrayItemAttributes.cs
- DrawingAttributesDefaultValueFactory.cs
- ProcessModelInfo.cs
- documentsequencetextview.cs
- TextStore.cs
- WindowsIPAddress.cs
- OutputScope.cs
- JoinCqlBlock.cs
- _DigestClient.cs
- AttributeUsageAttribute.cs
- SuppressIldasmAttribute.cs
- TabControlCancelEvent.cs
- IdleTimeoutMonitor.cs
- DbConnectionPool.cs
- DataSet.cs
- XappLauncher.cs
- UdpChannelListener.cs
- EnvelopedSignatureTransform.cs
- ClickablePoint.cs
- ListViewInsertEventArgs.cs
- TreeIterator.cs
- ScriptResourceDefinition.cs
- GroupBoxAutomationPeer.cs
- BindingEntityInfo.cs
- CommandEventArgs.cs
- AlignmentXValidation.cs
- Context.cs
- ParallelTimeline.cs
- BuildDependencySet.cs
- PropertyChangeTracker.cs
- CollectionViewSource.cs
- EdgeModeValidation.cs
- SqlCharStream.cs
- ResolveNameEventArgs.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- PlaceHolder.cs
- Point3DCollection.cs
- SQLByteStorage.cs
- ImageSource.cs
- NonceToken.cs
- WebPartDisplayModeCollection.cs
- FontEmbeddingManager.cs
- LocationSectionRecord.cs
- RawTextInputReport.cs
- RouteValueDictionary.cs
- TypeDescriptor.cs
- TextServicesLoader.cs
- PeerNameRecordCollection.cs
- sqlinternaltransaction.cs
- DocumentPaginator.cs
- PerformanceCounterPermissionAttribute.cs
- MenuCommands.cs
- WebConfigurationHost.cs
- AttributeEmitter.cs
- StackSpiller.cs
- DnsPermission.cs
- EntityTypeEmitter.cs
- Lasso.cs
- PackagingUtilities.cs
- Win32PrintDialog.cs
- FormViewUpdatedEventArgs.cs
- InternalCache.cs
- FormClosingEvent.cs
- WebPartsSection.cs
- PhysicalFontFamily.cs
- HMACSHA512.cs
- DoubleAnimation.cs
- ConfigXmlElement.cs
- BufferedWebEventProvider.cs
- DbExpressionVisitor_TResultType.cs
- QueryAccessibilityHelpEvent.cs
- Solver.cs
- ReadOnlyCollectionBase.cs
- ObjectAnimationUsingKeyFrames.cs
- ListBoxItemAutomationPeer.cs
- DescendantQuery.cs
- ListBox.cs
- ResourcePermissionBase.cs