FileVersionInfo.IsPatched Propriedade

Definição

Recebe um valor que especifica se o ficheiro foi modificado e não é idêntico ao ficheiro original de envio com o mesmo número de versão.

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

Valor de Propriedade

true se o ficheiro for corrigido; caso contrário, false.

Exemplos

O exemplo seguinte pede GetVersionInfo para obter o FileVersionInfo bloco de notas. Depois, mostra o estado do Booleano IsPatched numa caixa de texto. Este código assume textBox1 que foi instanciado.

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

Aplica-se a