LicenseContext.GetSavedLicenseKey(Type, Assembly) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.