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
- ToolStripOverflow.cs
- Mapping.cs
- ColumnProvider.cs
- ObjectStateFormatter.cs
- LoginView.cs
- FormView.cs
- AssemblyNameProxy.cs
- IdleTimeoutMonitor.cs
- TreeViewHitTestInfo.cs
- BitmapEffectDrawingContent.cs
- TemplateBindingExtension.cs
- AspNetSynchronizationContext.cs
- XmlFormatReaderGenerator.cs
- GestureRecognizer.cs
- messageonlyhwndwrapper.cs
- COM2Properties.cs
- HistoryEventArgs.cs
- RepeatButton.cs
- BatchParser.cs
- MergePropertyDescriptor.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TreeNodeMouseHoverEvent.cs
- Attribute.cs
- SessionEndingEventArgs.cs
- Parser.cs
- WebDescriptionAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- TabItem.cs
- WebPartEditorOkVerb.cs
- GreenMethods.cs
- EntryPointNotFoundException.cs
- VisualStyleTypesAndProperties.cs
- ExceptionUtility.cs
- MsmqSecureHashAlgorithm.cs
- OneWayChannelListener.cs
- ApplicationServicesHostFactory.cs
- AddInToken.cs
- Unit.cs
- GenericTypeParameterBuilder.cs
- ColorDialog.cs
- XmlSchemaType.cs
- RangeContentEnumerator.cs
- ResXResourceSet.cs
- SafeUserTokenHandle.cs
- DbFunctionCommandTree.cs
- IPAddress.cs
- RangeValuePattern.cs
- NetCodeGroup.cs
- ListItemParagraph.cs
- LowerCaseStringConverter.cs
- LinqDataSourceDeleteEventArgs.cs
- DebugInfoExpression.cs
- EntityDataSourceStatementEditor.cs
- SerializationAttributes.cs
- GeometryValueSerializer.cs
- ResourcePool.cs
- HelpKeywordAttribute.cs
- IntSecurity.cs
- SerializerWriterEventHandlers.cs
- RichTextBox.cs
- MenuItemAutomationPeer.cs
- processwaithandle.cs
- DefaultValidator.cs
- TraceEventCache.cs
- Row.cs
- RequestResponse.cs
- CodeMethodMap.cs
- messageonlyhwndwrapper.cs
- DataGridItem.cs
- ToolStripActionList.cs
- Stacktrace.cs
- VariableQuery.cs
- SchemaDeclBase.cs
- ETagAttribute.cs
- GradientStopCollection.cs
- EntityUtil.cs
- ZipIOExtraFieldElement.cs
- QueryContinueDragEvent.cs
- DomainUpDown.cs
- ClientProtocol.cs
- RemotingService.cs
- TemplateControl.cs
- ZoneMembershipCondition.cs
- OutputScope.cs
- SecurityContext.cs
- TrackBar.cs
- HierarchicalDataSourceControl.cs
- DataGridViewIntLinkedList.cs
- GridLength.cs
- PeerUnsafeNativeCryptMethods.cs
- DataObject.cs
- WebPartAuthorizationEventArgs.cs
- Tracking.cs
- DictionaryBase.cs
- ProcessManager.cs
- Column.cs
- UrlAuthFailedErrorFormatter.cs
- figurelength.cs
- ValueQuery.cs
- HtmlSelect.cs