FileVersionInfo.SpecialBuild Egenskap

Definition

Hämtar den speciella bygginformationen för filen.

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

Egenskapsvärde

Den särskilda bygginformationen för filen eller null om filen inte innehöll versionsinformation.

Exempel

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

private void GetSpecialBuild()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print the special build information.
    textBox1.Text = "Special build information: " + myFileVersionInfo.SpecialBuild;
}
Private Sub GetSpecialBuild()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print the special build information.
    textBox1.Text = "Special build information: " & myFileVersionInfo.SpecialBuild
End Sub

Kommentarer

Om IsSpecialBuild är trueSpecialBuild måste du ange hur den här filen skiljer sig från standardversionen av filen.

Gäller för

Se även