FileVersionInfo.PrivateBuild Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft Informationen über eine private Version der Datei ab.
public:
property System::String ^ PrivateBuild { System::String ^ get(); };
public string? PrivateBuild { get; }
public string PrivateBuild { get; }
member this.PrivateBuild : string
Public ReadOnly Property PrivateBuild As String
Eigenschaftswert
Informationen zu einer privaten Version der Datei oder null
, wenn die Datei keine Versionsinformationen enthielt.
Beispiele
Im folgenden Beispiel wird GetVersionInfo aufgerufen, um die FileVersionInfo Editor abzurufen. Anschließend wird die private Buildinformationen in einem Textfeld gedruckt. Dieser Code wird davon ausgegangen textBox1
, dass es instanziiert wurde.
private:
void GetPrivateBuild()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo =
FileVersionInfo::GetVersionInfo( Environment::SystemDirectory + "\\Notepad.exe" );
// Print the private build number.
textBox1->Text = String::Concat( "Private build number: ", myFileVersionInfo->PrivateBuild );
}
private void GetPrivateBuild()
{
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo =
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");
// Print the private build number.
textBox1.Text = "Private build number: " + myFileVersionInfo.PrivateBuild;
}
Private Sub GetPrivateBuild()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
' Print the private build number.
textBox1.Text = "Private build number: " & myFileVersionInfo.PrivateBuild
End Sub
Hinweise
Diese Informationen sind vorhanden, wenn IsPrivateBuild true
dies der Fall ist.