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
- FacetEnabledSchemaElement.cs
- mactripleDES.cs
- DataGridViewElement.cs
- CompositionTarget.cs
- ObjectKeyFrameCollection.cs
- CombinedGeometry.cs
- ConnectionPool.cs
- DecimalConstantAttribute.cs
- ComEventsMethod.cs
- CheckoutException.cs
- DateTimeOffsetConverter.cs
- HostingEnvironmentSection.cs
- RegexReplacement.cs
- DynamicPropertyReader.cs
- ToolStripDropDownItemDesigner.cs
- SoapDocumentServiceAttribute.cs
- DocumentAutomationPeer.cs
- SqlDataSource.cs
- PrinterResolution.cs
- ListControl.cs
- cookie.cs
- CriticalHandle.cs
- XmlCharacterData.cs
- TextSpan.cs
- ReadOnlyTernaryTree.cs
- TemplatePagerField.cs
- TraceContextRecord.cs
- HighlightComponent.cs
- ArglessEventHandlerProxy.cs
- AnnotationComponentManager.cs
- IDictionary.cs
- CheckBoxField.cs
- X509Utils.cs
- DynamicMetaObject.cs
- CompoundFileStreamReference.cs
- JoinGraph.cs
- VisualBasicSettingsHandler.cs
- CorrelationService.cs
- HttpBindingExtension.cs
- StickyNoteAnnotations.cs
- PixelShader.cs
- PropertyDescriptorGridEntry.cs
- CloudCollection.cs
- FieldDescriptor.cs
- Tokenizer.cs
- Double.cs
- FillRuleValidation.cs
- MethodRental.cs
- PKCS1MaskGenerationMethod.cs
- ImageListUtils.cs
- CssStyleCollection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TreeNode.cs
- Translator.cs
- DictionaryItemsCollection.cs
- ADConnectionHelper.cs
- HttpServerUtilityBase.cs
- ExeConfigurationFileMap.cs
- ImportOptions.cs
- ClientOptions.cs
- InkCanvasSelectionAdorner.cs
- HTTPNotFoundHandler.cs
- AppliedDeviceFiltersDialog.cs
- CodeGotoStatement.cs
- ContentFileHelper.cs
- ComboBoxItem.cs
- PeerApplication.cs
- clipboard.cs
- DuplexChannelFactory.cs
- ParameterCollectionEditorForm.cs
- DistinctQueryOperator.cs
- precedingquery.cs
- UnsafeNativeMethodsCLR.cs
- PropertyToken.cs
- XhtmlBasicSelectionListAdapter.cs
- XPathBuilder.cs
- ShaderEffect.cs
- DoubleUtil.cs
- MediaPlayerState.cs
- BitStream.cs
- _ShellExpression.cs
- Stacktrace.cs
- ControlCodeDomSerializer.cs
- DataSourceCache.cs
- FixedSOMElement.cs
- ScriptReferenceEventArgs.cs
- SoapSchemaMember.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CollectionDataContract.cs
- AccessKeyManager.cs
- ManagementObjectCollection.cs
- ConstraintCollection.cs
- DynamicPropertyReader.cs
- FlagsAttribute.cs
- SqlBuffer.cs
- EditorBrowsableAttribute.cs
- HtmlInputFile.cs
- PassportAuthenticationEventArgs.cs
- JsonDataContract.cs
- FontFaceLayoutInfo.cs