NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

LicenseContext.GetSavedLicenseKey

When overridden in a derived class, gets a saved license key for the specified type, from the specified resourceAssembly.

[Visual Basic]
Overridable Public Function GetSavedLicenseKey( _
   ByVal type As Type, _
   ByVal resourceAssembly As Assembly _
) As String
[C#]
public virtual string GetSavedLicenseKey(
   Type type,
   Assembly resourceAssembly
);
[C++]
public: virtual String* GetSavedLicenseKey(
   Type* type,
   Assembly* resourceAssembly
);
[JScript]
public function GetSavedLicenseKey(
   type : Type,
   resourceAssembly : Assembly
) : String;

Parameters

type
A Type that represents the type of component.
resourceAssembly
An Assembly with the license key.

Return Value

The LicenseKey for the specified type.

Remarks

As implemented in this class, this method returns a null reference (in Visual Basic Nothing).

Notes to Inheritors: If resourceAssembly is a null reference (Nothing), then you should retrieve the resource from the primary executing Assembly.

See Also

LicenseContext Class | LicenseContext Members | System.ComponentModel Namespace | License | LicenseContext | LicenseException | LicenseManager | LicenseProvider | LicenseProviderAttribute | LicFileLicenseProvider | LicenseUsageMode