Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LicenseContext::SetSavedLicenseKey Method (Type^, String^)

 

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

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
virtual void SetSavedLicenseKey(
	Type^ type,
	String^ key
)

Parameters

type
Type: System::Type^

A Type that represents the component associated with the license key.

key
Type: System::String^

The LicenseKey to save for the type of component.

Typically, call this method when you set LicenseUsageMode at design time. You must override the UsageMode property to implement design-time license support.

Notes to Inheritors:

This method does not provide support for a saved license key. Override this method and the GetSavedLicenseKey method to implement a key.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft