Redigera

Dela via


FileVersionInfo.SpecialBuild Property

Definition

Gets the special build information for the file.

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

Property Value

The special build information for the file or null if the file did not contain version information.

Examples

The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it prints the special build information in a text box. This code assumes textBox1 has been instantiated.

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 = String::Concat( "Special build information: ", myFileVersionInfo->SpecialBuild );
    }
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

Remarks

If IsSpecialBuild is true, SpecialBuild must specify how this file differs from the standard version of the file.

Applies to

See also