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
- UrlPropertyAttribute.cs
- HttpResponseWrapper.cs
- TextRangeEditTables.cs
- DaylightTime.cs
- AmbientLight.cs
- IncrementalCompileAnalyzer.cs
- sqlmetadatafactory.cs
- ActiveXHelper.cs
- DBSqlParserTableCollection.cs
- Message.cs
- XmlDataLoader.cs
- XPathNode.cs
- QuadraticBezierSegment.cs
- FlowDecisionLabelFeature.cs
- CategoryGridEntry.cs
- ByeMessageCD1.cs
- BaseAsyncResult.cs
- CornerRadiusConverter.cs
- RemoveStoryboard.cs
- Soap12ServerProtocol.cs
- MenuItem.cs
- PermissionListSet.cs
- SignedInfo.cs
- UntypedNullExpression.cs
- OdbcDataReader.cs
- UnmanagedBitmapWrapper.cs
- Signature.cs
- StandardMenuStripVerb.cs
- SymDocumentType.cs
- ConnectionsZone.cs
- LayoutManager.cs
- ClaimComparer.cs
- StartUpEventArgs.cs
- PassportAuthentication.cs
- GetIndexBinder.cs
- SubstitutionList.cs
- BufferModesCollection.cs
- WebPartConnectionsCancelVerb.cs
- X509ThumbprintKeyIdentifierClause.cs
- ScriptingJsonSerializationSection.cs
- HtmlInputSubmit.cs
- XmlSecureResolver.cs
- versioninfo.cs
- Relationship.cs
- PasswordPropertyTextAttribute.cs
- FileUtil.cs
- WmpBitmapEncoder.cs
- ToolStripContainerActionList.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- RefreshEventArgs.cs
- RecordManager.cs
- CaseExpr.cs
- CompatibleComparer.cs
- CheckBoxPopupAdapter.cs
- TableParagraph.cs
- TextEditorThreadLocalStore.cs
- SrgsNameValueTag.cs
- ResourceManager.cs
- SplitterDesigner.cs
- DataBinder.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SimpleMailWebEventProvider.cs
- XPathNavigatorReader.cs
- OperatorExpressions.cs
- Events.cs
- OleDbPropertySetGuid.cs
- AngleUtil.cs
- ConfigXmlText.cs
- Stylesheet.cs
- EventLogEntryCollection.cs
- DefaultPropertyAttribute.cs
- PerspectiveCamera.cs
- RouteValueExpressionBuilder.cs
- MemberNameValidator.cs
- SettingsAttributes.cs
- DataGridViewCellValidatingEventArgs.cs
- ComponentResourceManager.cs
- TcpClientChannel.cs
- XmlAttributeOverrides.cs
- oledbmetadatacolumnnames.cs
- PtsHelper.cs
- ImageSourceValueSerializer.cs
- FieldAccessException.cs
- StylusPointPropertyInfo.cs
- IOThreadScheduler.cs
- InputScopeConverter.cs
- EventlogProvider.cs
- Color.cs
- CodeDomSerializerBase.cs
- EditorBrowsableAttribute.cs
- MetadataCache.cs
- ButtonFlatAdapter.cs
- CheckPair.cs
- SmiRequestExecutor.cs
- XmlSchemaAny.cs
- MachineKeyConverter.cs
- WebPartTracker.cs
- IsolationInterop.cs
- ToolStripSeparator.cs
- ArgumentOutOfRangeException.cs