共用方式為


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 則必須指定此檔案與檔案的標準版本有何不同。

適用於

另請參閱