Reference for Team Foundation Server SDK
VersionControlServer..::.QueryShelvesets Method

Shelving enables you to take a batch of pending changes and set it aside as a named shelveset. The changes in a shelveset can be restored later into your workspace or into another user's workspace. This function enables you to query for shelvesets.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax

Visual Basic (Declaration)
Public Function QueryShelvesets ( _
    shelvesetName As String, _
    shelvesetOwner As String _
) As Shelveset()
Visual Basic (Usage)
Dim instance As VersionControlServer
Dim shelvesetName As String
Dim shelvesetOwner As String
Dim returnValue As Shelveset()

returnValue = instance.QueryShelvesets(shelvesetName, _
    shelvesetOwner)
C#
public Shelveset[] QueryShelvesets(
    string shelvesetName,
    string shelvesetOwner
)
Visual C++
public:
array<Shelveset^>^ QueryShelvesets(
    String^ shelvesetName, 
    String^ shelvesetOwner
)
JScript
public function QueryShelvesets(
    shelvesetName : String, 
    shelvesetOwner : String
) : Shelveset[]

Parameters

shelvesetName
Type: System..::.String
The name of the shelveset that you want to get. Pass null to match all shelvesets regardless of the name.
shelvesetOwner
Type: System..::.String
The owner of the shelvesets that you want to retreive. Pass null to match all shelvesets regardless of owner.

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client..::.Shelveset>[]()[]
Returns an array of Shelveset objects that matches the query.
Permissions

See Also

Reference

Tags :


Page view tracker