Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
 QueryShelvesets Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
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)
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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker