Gets the private part number of the product this file is associated with.
[Visual Basic] Public ReadOnly Property ProductPrivatePart As Integer [C#] public int ProductPrivatePart {get;} [C++] public: __property int get_ProductPrivatePart(); [JScript] public function get ProductPrivatePart() : int;
A value representing the private part number of the product this file is associated with.
Typically, a version number is displayed as "major number.minor number.build number.private part number". A product version number is a 64-bit number which holds the version number as follows:
This property gets the last set of 16 bits.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the ProductPrivatePart in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetProductPrivatePart() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the file name and version number. TextBox1.Text = "Product Private Part Number: " & myFileVersionInfo.ProductPrivatePart End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace | ProductBuildPart | ProductMinorPart | ProductMajorPart | ProductVersion