FileVersionInfo.IsPrivateBuild 속성

정의

표준 릴리스 프로시저를 사용하여 파일이 빌드되었는지 여부를 지정하는 값을 가져옵니다.

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

속성 값

true 파일이 프라이빗 빌드이면 이고, false 파일이 표준 릴리스 프로시저를 사용하여 빌드되었거나 파일에 버전 정보가 포함되어 있지 않은 경우

예제

다음 예제에서는 메모장을 가져오기 GetVersionInfo 위해 호출 FileVersionInfo 합니다. 그런 다음 텍스트 상자에 프라이빗 빌드 정보를 표시합니다. 이 코드는 인스턴스화되었다고 가정합니다 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

설명

이 값이 truePrivateBuild 면 이 파일 버전이 표준 버전과 어떻게 다른지 설명합니다.

적용 대상

추가 정보