Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }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
- ComboBoxItem.cs
- SignatureGenerator.cs
- FlowDocumentReaderAutomationPeer.cs
- TextReader.cs
- CapabilitiesRule.cs
- MapPathBasedVirtualPathProvider.cs
- BamlMapTable.cs
- RequestStatusBarUpdateEventArgs.cs
- ModelUIElement3D.cs
- HttpHandlerAction.cs
- XmlIterators.cs
- PackWebRequest.cs
- ResXFileRef.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- XmlCodeExporter.cs
- wgx_render.cs
- WizardForm.cs
- WebPartCollection.cs
- AxImporter.cs
- EnumConverter.cs
- TableItemProviderWrapper.cs
- WCFModelStrings.Designer.cs
- TemplatedAdorner.cs
- JapaneseCalendar.cs
- UrlParameterReader.cs
- bidPrivateBase.cs
- SystemNetworkInterface.cs
- CopyNodeSetAction.cs
- NegotiateStream.cs
- PieceDirectory.cs
- TimeSpanConverter.cs
- GridItemProviderWrapper.cs
- ConvertEvent.cs
- DbParameterHelper.cs
- ImageMapEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- ExitEventArgs.cs
- PerformanceCounterCategory.cs
- ProfileInfo.cs
- TrailingSpaceComparer.cs
- Ipv6Element.cs
- HttpWebResponse.cs
- TreeViewEvent.cs
- ItemDragEvent.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DirectionalAction.cs
- ElementUtil.cs
- SimplePropertyEntry.cs
- DataRecordInfo.cs
- CodeSubDirectoriesCollection.cs
- DateTimeValueSerializer.cs
- SecurityUniqueId.cs
- Variant.cs
- Encoder.cs
- SingleTagSectionHandler.cs
- StorageTypeMapping.cs
- RegexGroupCollection.cs
- PriorityQueue.cs
- FunctionDefinition.cs
- TextSearch.cs
- SchemaNames.cs
- ExpressionEditorSheet.cs
- DriveNotFoundException.cs
- OracleParameterBinding.cs
- DbConnectionPoolIdentity.cs
- DebugHandleTracker.cs
- AssemblyName.cs
- ScriptingAuthenticationServiceSection.cs
- InvalidTimeZoneException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- KerberosReceiverSecurityToken.cs
- CookieHandler.cs
- _HTTPDateParse.cs
- DataServiceStreamResponse.cs
- ObsoleteAttribute.cs
- ValidationError.cs
- ValidatorCompatibilityHelper.cs
- ReaderWriterLock.cs
- _ProxyRegBlob.cs
- WmlCalendarAdapter.cs
- ColorBlend.cs
- ControllableStoryboardAction.cs
- EntityReference.cs
- HandlerFactoryWrapper.cs
- ButtonRenderer.cs
- CodeGeneratorOptions.cs
- ImageButton.cs
- QueryNode.cs
- GuidelineCollection.cs
- ComponentResourceKeyConverter.cs
- PointAnimation.cs
- Camera.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- ConfigurationSection.cs
- SocketCache.cs
- SoapRpcServiceAttribute.cs
- ProtocolInformationWriter.cs
- WeakKeyDictionary.cs
- MediaElement.cs
- RelativeSource.cs