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

Gets a value that specifies whether the file is a development version, rather than a commercially released product.

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

Property Value

true if the file is prerelease; otherwise, false.

Example [Visual Basic]

The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it displays whether this version is a prerelease version in a text box. This code assumes TextBox1 has been instantiated.

[Visual Basic]

Private Sub GetIsPreRelease()
   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 is prerelease version: " & myFileVersionInfo.IsPreRelease
End Sub

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace