FileVersionInfo.FilePrivatePart 속성
.NET Framework 3.5
업데이트: 2007년 11월
파일 전용 부분 번호를 가져옵니다.
어셈블리: System(System.dll)
일반적으로 버전 번호는 "주 버전 번호.부 버전 번호.빌드 버전 번호.전용 부분 버전 번호"로 표시됩니다. 파일 버전 번호는 다음과 같이 파일의 버전 번호가 포함되어 있는 64비트 숫자입니다.
첫 번째 16비트는 FileMajorPart 번호입니다.
다음 16비트는 FileMinorPart 번호입니다.
세 번째 16비트는 FileBuildPart 번호입니다.
마지막 16비트는 FilePrivatePart 번호입니다.
이 속성은 마지막 16비트 집합을 가져옵니다.
다음 예제에서는 GetVersionInfo를 호출하여 메모장에 대한 FileVersionInfo를 가져옵니다. 그러면 FilePrivatePart가 텍스트 상자에 표시됩니다. 이 코드에서는 textBox1이 인스턴스화되었다고 가정합니다.
private void GetFilePrivatePart() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); // Print the file private part number. textBox1.Text = "File private part number: " + myFileVersionInfo.FilePrivatePart; }
private void GetFilePrivatePart()
{
// Get the file version for the notepad.
FileVersionInfo myFileVersionInfo =
FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
// Print the file private part number.
textBox1.set_Text("File private part number: "
+ myFileVersionInfo.get_FilePrivatePart());
} //GetFilePrivatePart
private function GetFilePrivatePart() { //Get the file version for the notepad. var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe"); //Print the file private part number. textBox1.Text = "File private part number: " + myFileVersionInfo.FilePrivatePart; }
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.