LicenseContext.GetSavedLicenseKey(Type, Assembly) Metoda

Definicja

Po zastąpieniu w klasie pochodnej zwraca zapisany klucz licencji dla określonego typu z określonego zestawu zasobów.

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

Parametry

type
Type

Element Type reprezentujący typ składnika.

resourceAssembly
Assembly

Element Assembly z kluczem licencji.

Zwraca

Wartość LicenseKey dla określonego typu. Ta metoda zostanie zwrócona null , chyba że zostanie ona zastąpiona.

Uwagi dotyczące dziedziczenia

Zastąpij tę metodę i SetSavedLicenseKey(Type, String) metodę w celu zaimplementowania zapisanego klucza licencji. resourceAssembly Jeśli parametr ma nullwartość , możesz pobrać zasób z podstawowego wykonywania Assemblypolecenia .

Dotyczy

Zobacz też