FileVersionInfo.SpecialBuild 属性

定义

获取文件的特殊内部版本信息。

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

属性值

文件的特殊内部版本信息,当文件不包含版本信息时则为 null

示例

以下示例调用 GetVersionInfo 以获取 FileVersionInfo 记事本的 。 然后,它会在文本框中打印特殊生成信息。 此代码假定 textBox1 已实例化。

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

注解

如果 IsSpecialBuildtrueSpecialBuild 则必须指定此文件与文件的标准版本有何不同。

适用于

另请参阅