FileVersionInfo.ProductMinorPart 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파일이 연결된 제품의 버전 번호의 부 부분을 가져옵니다.
public:
property int ProductMinorPart { int get(); };
public int ProductMinorPart { get; }
member this.ProductMinorPart : int
Public ReadOnly Property ProductMinorPart As Integer
속성 값
제품 버전 번호의 부 부분을 나타내거나 null 파일에 버전 정보가 없는 경우를 나타내는 값입니다.
예제
다음 예제에서는 메모장을 가져오기 GetVersionInfo 위해 호출 FileVersionInfo 합니다. 그런 다음 텍스트 상자에 인쇄합니다 ProductMinorPart . 이 코드는 인스턴스화되었다고 가정합니다 textBox1 .
private void GetProductMinorPart()
{
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo =
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");
// Print the product minor part number.
textBox1.Text = "Product minor part number: " + myFileVersionInfo.ProductMinorPart;
}
Private Sub GetProductMinorPart()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo = _
FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
' Print the product minor part number.
textBox1.Text = "Product minor part number: " & myFileVersionInfo.ProductMinorPart
End Sub
설명
일반적으로 버전 번호는 "major number.minor number.build number.private part number"로 표시됩니다. 제품 버전 번호는 다음과 같이 버전 번호를 포함하는 64비트 번호입니다.
처음 16비트가 숫자입니다 ProductMajorPart .
다음 16비트가 숫자입니다 ProductMinorPart .
16비트 세 번째 집합은 숫자입니다 ProductBuildPart .
마지막 16비트가 숫자입니다 ProductPrivatePart .
이 속성은 두 번째 16비트 집합을 가져옵니다.