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 ein besonderes Build ist.
Namespace: System.Diagnostics
Assembly: System (in system.dll)
Syntax
'Declaration
Public ReadOnly Property IsSpecialBuild As Boolean
'Usage
Dim instance As FileVersionInfo
Dim value As Boolean
value = instance.IsSpecialBuild
public bool IsSpecialBuild { get; }
public:
property bool IsSpecialBuild {
bool get ();
}
/** @property */
public boolean get_IsSpecialBuild ()
public function get IsSpecialBuild () : boolean
Eigenschaftenwert
true, wenn die Datei ein besonderes Build ist, andernfalls false.
Hinweise
Als besonderes Build wird eine Datei bezeichnet, die unter Verwendung von Standardverfahren zur Veröffentlichung erstellt wurde, sich jedoch von einer Standarddatei mit der gleichen Versionsnummer unterscheidet. Wenn dieser Wert true ist, muss die SpecialBuild-Eigenschaft angeben, auf welche Weise sich diese Datei von der Standardversion unterscheidet.
Beispiel
Im folgenden Beispiel wird GetVersionInfo aufgerufen, um FileVersionInfo für den Editor abzurufen. Anschließend wird in einem Textfeld angezeigt, ob diese Version der Datei ein besonderes Build ist. Bei diesem Code wird davon ausgegangen, dass textBox1 instanziiert wurde.
Private Sub GetIsSpecialBuild()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
' Print whether the file is a special build.
textBox1.Text = "File is a special build: " & myFileVersionInfo.IsSpecialBuild
End Sub 'GetIsSpecialBuild
private void GetIsSpecialBuild() {
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
// Print whether the file is a special build.
textBox1.Text = "File is a special build: " + myFileVersionInfo.IsSpecialBuild;
}
private:
void GetIsSpecialBuild()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\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("%systemroot%\\Notepad.exe");
// Print whether the file is a special build.
textBox1.set_Text("File is a special build: "
+ myFileVersionInfo.get_IsSpecialBuild());
} //GetIsSpecialBuild
private function GetIsSpecialBuild() {
//Get the file version for the notepad.
var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
//Print whether the file is a special build.
textBox1.Text = "File is a special build: " + myFileVersionInfo.IsSpecialBuild;
}
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
SpecialBuild