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

Gets a value that specifies whether the file is a special build.

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

Property Value

true if the file is a special build; otherwise, false.

Remarks

A file that is a special build was built by the original company using standard release procedures, but differs from the standard file of the same version number. If this value is true, SpecialBuild must specify how this file differs from the standard version.

Example [Visual Basic]

The following example calls GetVersionInfo to get a FileVersionInfo for the specified file and determines whether it is a special build. If it is a special build, the special build information is displayed in the label; otherwise, false is displayed in the label. This code assumes Label1 has been instantiated.

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

[Visual Basic]

Private Sub GetIsSpecialBuild()
   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 a special build: " & myFileVersionInfo.IsSpecialBuild
End Sub

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace | SpecialBuild