Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft einen Wert ab, der angibt, ob die Datei mithilfe von Standardverfahren zur Veröffentlichung erstellt wurde.
Namespace: System.Diagnostics
Assembly: System (in system.dll)
Syntax
'Declaration
Public ReadOnly Property IsPrivateBuild As Boolean
'Usage
Dim instance As FileVersionInfo
Dim value As Boolean
value = instance.IsPrivateBuild
public bool IsPrivateBuild { get; }
public:
property bool IsPrivateBuild {
bool get ();
}
/** @property */
public boolean get_IsPrivateBuild ()
public function get IsPrivateBuild () : boolean
Eigenschaftenwert
true, wenn die Datei ein privates Build ist, false, wenn die Datei mithilfe von Standardverfahren zur Veröffentlichung erstellt wurde.
Hinweise
Wenn dieser Wert true ist, beschreibt PrivateBuild, auf welche Weise sich diese Version der Datei von der Standardversion unterscheidet.
Beispiel
Im folgenden Beispiel wird GetVersionInfo aufgerufen, um FileVersionInfo für den Editor abzurufen. Die Informationen über das private Build werden dann in einem Textfeld angezeigt. Bei diesem Code wird davon ausgegangen, dass textBox1 instanziiert wurde.
Private Sub GetIsPrivateBuild()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
' Print whether the version is a private build.
textBox1.Text = "Version is a private build: " & myFileVersionInfo.IsPrivateBuild
End Sub 'GetIsPrivateBuild
private void GetIsPrivateBuild() {
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
// Print whether the version is a private build.
textBox1.Text = "Version is a private build: " + myFileVersionInfo.IsPrivateBuild;
}
private:
void GetIsPrivateBuild()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\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("%systemroot%\\Notepad.exe");
// Print whether the version is a private build.
textBox1.set_Text("Version is a private build: "
+ myFileVersionInfo.get_IsPrivateBuild());
} //GetIsPrivateBuild
private function GetIsPrivateBuild() {
//Get the file version for the notepad.
var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
//Print whether the version is a private build.
textBox1.Text = "Version is a private build: " + myFileVersionInfo.IsPrivateBuild;
}
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
FileVersionInfo-Klasse
FileVersionInfo-Member
System.Diagnostics-Namespace
PrivateBuild