Freigeben über


FileVersionInfo.ProductMinorPart-Eigenschaft

Ruft den zweiten Teil der Versionsnummer (Nebenversionsnummer) des Produkts ab, dem diese Datei zugeordnet ist.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

Syntax

'Declaration
Public ReadOnly Property ProductMinorPart As Integer
'Usage
Dim instance As FileVersionInfo
Dim value As Integer

value = instance.ProductMinorPart
public int ProductMinorPart { get; }
public:
property int ProductMinorPart {
    int get ();
}
/** @property */
public int get_ProductMinorPart ()
public function get ProductMinorPart () : int

Eigenschaftenwert

Ein Wert, der den zweiten Teil der Produktversionsnummer (Nebenversionsnummer) darstellt.

Hinweise

Eine Versionsnummer wird üblicherweise als "Hauptversionsnummer.Nebenversionsnummer.Buildnummer.Einzelteilnummer" angezeigt. Eine Produktversionsnummer ist eine 64-Bit-Zahl, die die Versionsnummer wie folgt enthält:

Diese Eigenschaft ruft die zweite 16-Bit-Gruppe ab.

Beispiel

Im folgenden Beispiel wird GetVersionInfo aufgerufen, um FileVersionInfo für den Editor abzurufen. ProductMinorPart wird dann in einem Textfeld angezeigt. Bei diesem Code wird davon ausgegangen, dass textBox1 instanziiert wurde.

Private Sub GetProductMinorPart()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
    
    ' Print the product minor part number.
    textBox1.Text = "Product minor part number: " & myFileVersionInfo.ProductMinorPart
End Sub 'GetProductMinorPart
private void GetProductMinorPart() {
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    // Print the product minor part number.
    textBox1.Text = "Product minor part number: " + myFileVersionInfo.ProductMinorPart;
 }
    
private:
   void GetProductMinorPart()
   {
      // Get the file version for the notepad.
      FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\Notepad.exe" );
      
      // Print the product minor part number.
      textBox1->Text = String::Concat( "Product minor part number: ", myFileVersionInfo->ProductMinorPart );
   }
private void GetProductMinorPart()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = 
        FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");

    // Print the product minor part number.
    textBox1.set_Text("Product minor part number: " 
        + myFileVersionInfo.get_ProductMinorPart());
} //GetProductMinorPart
private function GetProductMinorPart() {
    //Get the file version for the notepad.
    var myFileVersionInfo : FileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    //Print the product minor part number.
    textBox1.Text = "Product minor part number: " + myFileVersionInfo.ProductMinorPart;
 }
    

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

FileVersionInfo-Klasse
FileVersionInfo-Member
System.Diagnostics-Namespace
FileVersionInfo.ProductBuildPart-Eigenschaft
FileVersionInfo.ProductMajorPart-Eigenschaft
ProductVersion