Gets a list of deployments meeting the parameters set in the spec.
Namespace:  Microsoft.TeamFoundation.Build.Server
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function QueryDeployments ( _
    spec As BuildDeploymentSpec _
) As List(Of BuildDeployment)
[WebMethodAttribute]
public List<BuildDeployment> QueryDeployments(
    BuildDeploymentSpec spec
)
[WebMethodAttribute]
public:
List<BuildDeployment^>^ QueryDeployments(
    BuildDeploymentSpec^ spec
)
[<WebMethodAttribute>]
member QueryDeployments : 
        spec:BuildDeploymentSpec -> List<BuildDeployment> 
public function QueryDeployments(
    spec : BuildDeploymentSpec
) : List<BuildDeployment>
Parameters
- spec 
 Type: Microsoft.TeamFoundation.Build.Server.BuildDeploymentSpec- A BuildDeploymentSpec specifying the query parameters. 
Return Value
Type: System.Collections.Generic.List<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.