Answer File OptionsProduct Key Property
Gets or sets the Windows product key.
Definition
Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
The product key, or to install without a key.
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public string? ProductKey { get; set; }VB
Public Property ProductKey As String
Get
SetC++
public:
property String^ ProductKey {
String^ get ();
void set (String^ value);
}F#
member ProductKey : string with get, setProperty Value
StringThe product key, or to install without a key.
Remarks
The product key is used to select a Windows edition, and to activate Windows.
A product key is required in the answer file for most editions of Windows, but may not be required if the edition uses alternate activation methods such as volume licensing.