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
- CaseInsensitiveOrdinalStringComparer.cs
- TemplatedWizardStep.cs
- AuthenticationSection.cs
- SQLUtility.cs
- DependencyPropertyValueSerializer.cs
- Size.cs
- MouseDevice.cs
- CounterSetInstanceCounterDataSet.cs
- MethodToken.cs
- NavigationPropertyEmitter.cs
- EditorBrowsableAttribute.cs
- unitconverter.cs
- WindowsListBox.cs
- HeaderedItemsControl.cs
- XPathNodePointer.cs
- ContextQuery.cs
- ServiceProviders.cs
- WorkflowRuntime.cs
- WebPartEventArgs.cs
- SmtpReplyReader.cs
- ValueChangedEventManager.cs
- MonthCalendar.cs
- TimeSpanValidatorAttribute.cs
- WinInetCache.cs
- WorkflowTraceTransfer.cs
- FileDialogCustomPlace.cs
- WebBrowserProgressChangedEventHandler.cs
- GenericWebPart.cs
- WebSysDefaultValueAttribute.cs
- SystemResourceKey.cs
- PersistenceTypeAttribute.cs
- CellQuery.cs
- COAUTHINFO.cs
- XmlText.cs
- StreamGeometryContext.cs
- DBCommand.cs
- SpeechRecognitionEngine.cs
- RegexNode.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DataGridViewRow.cs
- KnownBoxes.cs
- JsonXmlDataContract.cs
- UIHelper.cs
- CodeDirectoryCompiler.cs
- PeekCompletedEventArgs.cs
- xmlfixedPageInfo.cs
- AuthorizationRuleCollection.cs
- EntityContainerEntitySet.cs
- SortedDictionary.cs
- DockPatternIdentifiers.cs
- SelfSignedCertificate.cs
- CharConverter.cs
- WpfPayload.cs
- BridgeDataReader.cs
- ToolStripItemImageRenderEventArgs.cs
- DataSourceSelectArguments.cs
- RegexStringValidator.cs
- WorkflowViewManager.cs
- HitTestDrawingContextWalker.cs
- ByteKeyFrameCollection.cs
- PartitionerQueryOperator.cs
- VersionedStream.cs
- CultureInfoConverter.cs
- WindowsEditBox.cs
- DataKeyArray.cs
- UserPreferenceChangingEventArgs.cs
- NewArrayExpression.cs
- DataConnectionHelper.cs
- Accessible.cs
- DecoderFallback.cs
- Exception.cs
- ContentElement.cs
- ObjectConverter.cs
- TextEditorSelection.cs
- TypeConverterAttribute.cs
- SqlBuffer.cs
- SqlClientPermission.cs
- ReadOnlyDictionary.cs
- XmlNamespaceMappingCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- DispatcherSynchronizationContext.cs
- WindowsListViewItem.cs
- ControlEvent.cs
- RelationshipConverter.cs
- ReverseInheritProperty.cs
- StateMachineWorkflow.cs
- ProtocolsSection.cs
- XmlValidatingReaderImpl.cs
- ActivityExecutorSurrogate.cs
- _LazyAsyncResult.cs
- AstNode.cs
- _ChunkParse.cs
- StringInfo.cs
- SharedHttpsTransportManager.cs
- CommandDevice.cs
- FileAccessException.cs
- DragEvent.cs
- Pair.cs
- LineMetrics.cs
- SafeCertificateStore.cs