Breyta

Deila með


LicenseContext.GetSavedLicenseKey(Type, Assembly) Method

Definition

When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly.

public:
 virtual System::String ^ GetSavedLicenseKey(Type ^ type, System::Reflection::Assembly ^ resourceAssembly);
public virtual string GetSavedLicenseKey (Type type, System.Reflection.Assembly resourceAssembly);
public virtual string? GetSavedLicenseKey (Type type, System.Reflection.Assembly? resourceAssembly);
abstract member GetSavedLicenseKey : Type * System.Reflection.Assembly -> string
override this.GetSavedLicenseKey : Type * System.Reflection.Assembly -> string
Public Overridable Function GetSavedLicenseKey (type As Type, resourceAssembly As Assembly) As String

Parameters

type
Type

A Type that represents the type of component.

resourceAssembly
Assembly

An Assembly with the license key.

Returns

The LicenseKey for the specified type. This method returns null unless you override it.

Notes to Inheritors

Override this method and the SetSavedLicenseKey(Type, String) method to implement a saved license key. If the resourceAssembly parameter is null, then you can retrieve the resource from the primary executing Assembly.

Applies to

See also