Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompiledQuery.cs
- _AutoWebProxyScriptEngine.cs
- FastEncoder.cs
- BufferModesCollection.cs
- ZipIOLocalFileBlock.cs
- TextBoxBase.cs
- CustomAttribute.cs
- IMembershipProvider.cs
- PropertySegmentSerializationProvider.cs
- RemoteWebConfigurationHost.cs
- SiteMapNodeItem.cs
- KnownBoxes.cs
- Query.cs
- EntityDataSourceStatementEditorForm.cs
- BuildProviderAppliesToAttribute.cs
- TaskbarItemInfo.cs
- DbParameterHelper.cs
- MonitoringDescriptionAttribute.cs
- ManagedIStream.cs
- BitmapData.cs
- ResolveDuplexAsyncResult.cs
- RegionData.cs
- XmlSignatureManifest.cs
- RegexBoyerMoore.cs
- BuildResultCache.cs
- TableRowCollection.cs
- DataGridViewElement.cs
- HtmlTitle.cs
- InvokeSchedule.cs
- TokenBasedSetEnumerator.cs
- Expr.cs
- FixedPage.cs
- _DigestClient.cs
- OleDbFactory.cs
- BitmapPalettes.cs
- HttpRequestCacheValidator.cs
- DateTimeFormatInfoScanner.cs
- XmlDomTextWriter.cs
- ArgIterator.cs
- TextDecoration.cs
- XMLSchema.cs
- ModelTypeConverter.cs
- SiteIdentityPermission.cs
- _LoggingObject.cs
- ParameterCollection.cs
- WebPartRestoreVerb.cs
- QueryInterceptorAttribute.cs
- WindowsBrush.cs
- BindingExpressionBase.cs
- UdpUtility.cs
- DialogResultConverter.cs
- Calendar.cs
- NotifyParentPropertyAttribute.cs
- Helpers.cs
- StorageAssociationSetMapping.cs
- ConfigXmlAttribute.cs
- EventLogEntry.cs
- WebScriptServiceHost.cs
- DataContractJsonSerializerOperationFormatter.cs
- Solver.cs
- RowCache.cs
- DrawingGroup.cs
- IdentityReference.cs
- ProvidersHelper.cs
- SystemDropShadowChrome.cs
- WebPermission.cs
- WorkflowDefinitionDispenser.cs
- Part.cs
- OperationAbortedException.cs
- VisualTreeUtils.cs
- Rotation3DAnimation.cs
- _ScatterGatherBuffers.cs
- XamlDebuggerXmlReader.cs
- EntityProviderFactory.cs
- BitSet.cs
- SendMailErrorEventArgs.cs
- TypeElement.cs
- EdmItemCollection.OcAssemblyCache.cs
- RangeValidator.cs
- MailBnfHelper.cs
- Set.cs
- _ScatterGatherBuffers.cs
- DesignerInterfaces.cs
- StateBag.cs
- TypeInitializationException.cs
- RotateTransform.cs
- SqlDataReaderSmi.cs
- BorderSidesEditor.cs
- SuppressMergeCheckAttribute.cs
- Int32AnimationUsingKeyFrames.cs
- CategoryNameCollection.cs
- Win32SafeHandles.cs
- BufferBuilder.cs
- X500Name.cs
- XmlDocumentFragment.cs
- IEnumerable.cs
- Rect.cs
- SmiRecordBuffer.cs
- XmlBinaryWriter.cs
- PostBackTrigger.cs