FileVersionInfo.IsPrivateBuild 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
표준 릴리스 프로시저를 사용하여 파일이 빌드되었는지 여부를 지정하는 값을 가져옵니다.
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 면 이 파일 버전이 표준 버전과 어떻게 다른지 설명합니다.