Collapse the table of content
Expand the table of content

BuildState Property

Visual Studio .NET 2003

Returns whether a build has ever been started in the current environment session, whether a build is currently in progress, or whether a build has been completed.

[Visual Basic .NET]
Public ReadOnly Property BuildState() As vsBuildState
[Visual Basic 6]
Property Get BuildState() As vsBuildState
HRESULT __stdcall get_BuildState(
   /* [out, retval] */ vsBuildState* retVal
public vsBuildState BuildState {get;}
[JScript .NET]
public function get BuildState() : vsBuildState

Return Value

Returns a vsBuildState value representing the status of the build operation.


BuildState has vsBuildStateNotStarted so that you can detect a race condition; that is, when you start the environment to do a build and then check its build state before the build has actually begun. Checking to see if vsBuildState equals vsBuildStateNotStarted allows you to avoid this situation. It also allows you to determine whether the value of the LastBuildInfo Property is valid.

See Also

BuildDependencies Property | LastBuildInfo Property

Applies To: SolutionBuild Object

© 2016 Microsoft