FileVersionInfo.PrivateBuild Egenskap

Definition

Hämtar information om en privat version av filen.

public:
 property System::String ^ PrivateBuild { System::String ^ get(); };
public string PrivateBuild { get; }
member this.PrivateBuild : string
Public ReadOnly Property PrivateBuild As String

Egenskapsvärde

Information om en privat version av filen eller null om filen inte innehåller versionsinformation.

Exempel

I följande exempel anropas GetVersionInfo för att hämta FileVersionInfo för Anteckningar. Sedan skrivs den privata bygginformationen ut i en textruta. Den här koden förutsätter textBox1 att den har instansierats.

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

Kommentarer

Den här informationen finns när IsPrivateBuild är true.

Gäller för

Se även