FileVersionInfo.IsPrivateBuild Özellik

Tanım

Dosyanın standart sürüm yordamları kullanılarak derlenip derlendiğini belirten bir değer alır.

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

Özellik Değeri

true dosya özel bir derlemeyse; false dosya standart sürüm yordamları kullanılarak oluşturulduysa veya dosya sürüm bilgileri içermiyorsa.

Örnekler

Aşağıdaki örnek, Not Defteri için öğesini GetVersionInfo almak için öğesini çağırırFileVersionInfo. Ardından özel derleme bilgilerini bir metin kutusunda görüntüler. Bu kod örneği oluşturuldu varsayılır textBox1 .

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

Açıklamalar

Bu değer ise true, PrivateBuild dosyanın bu sürümünün standart sürümden nasıl farklı olduğunu açıklar.

Şunlara uygulanır

Ayrıca bkz.