FileVersionInfo.IsPrivateBuild Vlastnost

Definice

Získá hodnotu, která určuje, zda byl soubor vytvořen pomocí standardních postupů vydání.

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

Hodnota vlastnosti

true pokud soubor je privátní sestavení; false pokud byl soubor sestaven pomocí standardních postupů vydání nebo pokud soubor neobsahoval informace o verzi.

Příklady

Následující příklad volá GetVersionInfo pro získání pro FileVersionInfo Poznámkový blok. Potom zobrazí informace o soukromém sestavení v textovém poli. Tento kód předpokládá, že textBox1 došlo k vytvoření instance.

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

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

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

Poznámky

Pokud je truetato hodnota , PrivateBuild bude popisovat, jak se tato verze souboru liší od standardní verze.

Platí pro

Viz také