NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileVersionInfo.FileMinorPart

Gets the minor part of the version number of the file.

[Visual Basic]
Public ReadOnly Property FileMinorPart As Integer
[C#]
public int FileMinorPart {get;}
[C++]
public: __property int get_FileMinorPart();
[JScript]
public function get FileMinorPart() : int;

Property Value

A value representing the minor part of the version number of the file.

Remarks

Typically, a version number is displayed as "major number.minor number.build number.private part number". A file version number is a 64-bit number which holds the version number for a file as follows:

This property gets the second set of 16 bits.

Example [Visual Basic]

The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the FileMinorPart in a text box. This code assumes TextBox1 has been instantiated.

[Visual Basic]

Private Sub GetFileMinorPart()
   Dim myFileVersionInfo As System.Winforms.FileVersionInfo
   myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe")

   'Print the file name and version number.
   TextBox1.Text = "File Minor Part Number: " & myFileVersionInfo.FileMinorPart
End Sub

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace | FileMajorPart | FileBuildPart | FileVersion | System.WinForms.Version