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.IsPatched

Gets a value that specifies whether the file has been modified and is not identical to the original shipping file of the same version number.

[Visual Basic]
Public ReadOnly Property IsPatched As Boolean
[C#]
public bool IsPatched {get;}
[C++]
public: __property bool get_IsPatched();
[JScript]
public function get IsPatched() : Boolean;

Property Value

true if the file is patched; otherwise, false.

Example [Visual Basic]

The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it displays the state of the boolean IsPatched in a text box. This code assumes TextBox1 has been instantiated.

[Visual Basic]

Private Sub GetIsPatched()
   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 has patch installed: " & myFileVersionInfo.IsPatched
End Sub

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace