FileVersionInfo.IsPatched Propiedad

Definición

Obtiene un valor que especifica si el archivo se ha modificado y no es idéntico al archivo de envío original del mismo número de versión.

public:
 property bool IsPatched { bool get(); };
public bool IsPatched { get; }
member this.IsPatched : bool
Public ReadOnly Property IsPatched As Boolean

Valor de propiedad

true si el archivo está revisado; de lo contrario, false.

Ejemplos

En el ejemplo siguiente se llama GetVersionInfo a para obtener para FileVersionInfo el Bloc de notas. A continuación, muestra el estado del valor booleano IsPatched en un cuadro de texto. Este código supone textBox1 que se ha creado una instancia de .

private void GetIsPatched()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print whether the file has a patch installed.
    textBox1.Text = "File has patch installed: " + myFileVersionInfo.IsPatched;
}
Private Sub GetIsPatched()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print whether the file has a patch installed.
    textBox1.Text = "File has patch installed: " & myFileVersionInfo.IsPatched
End Sub

Se aplica a