Query the list of deployments
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
Public Function QueryDeployments ( _
    spec As BuildDeploymentSpec _
) As BuildDeployment()
public BuildDeployment[] QueryDeployments(
    BuildDeploymentSpec spec
)
public:
array<BuildDeployment^>^ QueryDeployments(
    BuildDeploymentSpec^ spec
)
member QueryDeployments : 
        spec:BuildDeploymentSpec -> BuildDeployment[] 
public function QueryDeployments(
    spec : BuildDeploymentSpec
) : BuildDeployment[]
Parameters
- spec 
 Type: Microsoft.TeamFoundation.Build.Client.BuildDeploymentSpec- The parameters to query on. 
Return Value
Type: array<Microsoft.TeamFoundation.Build.Client.BuildDeployment[]
An array of BuildDeployment[], each that contain basic information about the deployment build and the source build.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.