FileVersionInfo.ProductBuildPart 속성

정의

이 파일이 연결된 제품의 빌드 번호를 가져옵니다.

public:
 property int ProductBuildPart { int get(); };
public int ProductBuildPart { get; }
member this.ProductBuildPart : int
Public ReadOnly Property ProductBuildPart As Integer

속성 값

이 파일이 연결되어 있거나 null 파일에 버전 정보가 없는 경우 제품의 빌드 번호를 나타내는 값입니다.

예제

다음 예제에서는 메모장을 가져오기 GetVersionInfo 위해 호출 FileVersionInfo 합니다. 그런 다음 텍스트 상자에 인쇄합니다 ProductBuildPart . 이 코드는 인스턴스화되었다고 가정합니다 textBox1 .

private void GetProductBuildPart()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print the product build part number.
    textBox1.Text = "Product build part number: " + myFileVersionInfo.ProductBuildPart;
}
Private Sub GetProductBuildPart()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print the product build part number.
    textBox1.Text = "Product build part number: " & myFileVersionInfo.ProductBuildPart
End Sub

설명

일반적으로 버전 번호는 "major number.minor number.build number.private part number"로 표시됩니다. 제품 버전 번호는 다음과 같이 버전 번호를 포함하는 64비트 번호입니다.

이 속성은 세 번째 16비트 집합을 가져옵니다.

적용 대상

추가 정보