LicenseContext.SetSavedLicenseKey(Type, String) 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, sets a license key for the specified type.
public:
virtual void SetSavedLicenseKey(Type ^ type, System::String ^ key);
public virtual void SetSavedLicenseKey (Type type, string key);
abstract member SetSavedLicenseKey : Type * string -> unit
override this.SetSavedLicenseKey : Type * string -> unit
Public Overridable Sub SetSavedLicenseKey (type As Type, key As String)
Parameters
- key
- String
The LicenseKey to save for the type of component.
Remarks
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(Type, Assembly) method to implement a key.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru