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.SetSavedLicenseKey

When overridden in a derived class, sets a license key for the specified type.

[Visual Basic]
Overridable Public Sub SetSavedLicenseKey( _
   ByVal type As Type, _
   ByVal key As String _
)
[C#]
public virtual void SetSavedLicenseKey(
   Type type,
   string key
);
[C++]
public: virtual void SetSavedLicenseKey(
   Type* type,
   String* key
);
[JScript]
public function SetSavedLicenseKey(
   type : Type,
   key : String
);

Parameters

type
A Type that represents the component associated with the license key.
key
The LicenseKey to save for the type of component.

Remarks

This class, as implemented, does not provide support for saved license keys.

Notes to Inheritors: Typically, you should call this method when you set System.LicenseUsageMode at design time.

See Also

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