FileVersionInfo.IsSpecialBuild Vlastnost

Definice

Získá hodnotu, která určuje, zda soubor je speciální sestavení.

public:
 property bool IsSpecialBuild { bool get(); };
public bool IsSpecialBuild { get; }
member this.IsSpecialBuild : bool
Public ReadOnly Property IsSpecialBuild As Boolean

Hodnota vlastnosti

truepokud je soubor speciální sestavení; v opačném případě . false

Příklady

Následující příklad volá GetVersionInfo , aby získal pro FileVersionInfo Poznámkový blok. Pak se v textovém poli zobrazí, jestli je tato verze speciální verzí sestavení. Tento kód předpokládá, že textBox1 došlo k vytvoření instance.

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

        // Print whether the file is a special build.
        textBox1->Text = String::Concat( "File is a special build: ", myFileVersionInfo->IsSpecialBuild );
    }
private void GetIsSpecialBuild()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print whether the file is a special build.
    textBox1.Text = "File is a special build: " + myFileVersionInfo.IsSpecialBuild;
}
Private Sub GetIsSpecialBuild()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print whether the file is a special build.
    textBox1.Text = "File is a special build: " & myFileVersionInfo.IsSpecialBuild
End Sub

Poznámky

Soubor, který je speciálním sestavením, byl vytvořen pomocí standardních postupů vydání, ale soubor se liší od standardního souboru se stejným číslem verze. Pokud je truetato hodnota , SpecialBuild vlastnost musí určovat, jak se tento soubor liší od standardní verze.

Platí pro

Viz také