Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​ComponentModel.​LicenseContext

Assembly: System.ComponentModel.TypeConverter

Inheritance: object → LicenseContext

Implemented Interfaces

Specifies when you can use a licensed object and provides a way of obtaining additional services needed to support licenses running within its domain.

Properties

UsageMode
When overridden in a derived class, gets a value that specifies when you can use a license.

Methods

public string
GetSavedLicenseKey​(Type type, Reflection.​Assembly resourceAssembly)
When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly.
Returns The <see cref="P:System.ComponentModel.License.LicenseKey" /> for the specified type. This method returns <see langword="null" /> unless you override it.
type A <see cref="T:System.Type" /> that represents the type of component.
resourceAssembly An <see cref="T:System.Reflection.Assembly" /> with the license key.
public object
GetService​(Type type)
Gets the requested service, if it is available.
Returns An instance of the service, or <see langword="null" /> if the service cannot be found.
type The type of service to retrieve.
public void
SetSavedLicenseKey​(Type type, string key)
When overridden in a derived class, sets a license key for the specified type.
type A <see cref="T:System.Type" /> that represents the component associated with the license key.
key The <see cref="P:System.ComponentModel.License.LicenseKey" /> to save for the type of component.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object