Share via


Repository.Get Method

Called by the client to synchronize the workspace with a given version. Returns a "to do" list of files for the client to download to update the user's local working copies.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function Get ( _
    workspaceName As String, _
    ownerName As String, _
    requests As GetRequest(), _
    force As Boolean, _
    noGet As Boolean, _
    maxResults As Integer, _
    options As Integer _
) As List(Of StreamingCollection(Of GetOperation))
[WebMethodAttribute]
public List<StreamingCollection<GetOperation>> Get(
    string workspaceName,
    string ownerName,
    GetRequest[] requests,
    bool force,
    bool noGet,
    int maxResults,
    int options
)
[WebMethodAttribute]
public:
List<StreamingCollection<GetOperation^>^>^ Get(
    String^ workspaceName, 
    String^ ownerName, 
    array<GetRequest^>^ requests, 
    bool force, 
    bool noGet, 
    int maxResults, 
    int options
)
[<WebMethodAttribute>]
member Get : 
        workspaceName:string * 
        ownerName:string * 
        requests:GetRequest[] * 
        force:bool * 
        noGet:bool * 
        maxResults:int * 
        options:int -> List<StreamingCollection<GetOperation>> 
public function Get(
    workspaceName : String, 
    ownerName : String, 
    requests : GetRequest[], 
    force : boolean, 
    noGet : boolean, 
    maxResults : int, 
    options : int
) : List<StreamingCollection<GetOperation>>

Parameters

  • ownerName
    Type: System.String

    Workspace owner user name that includes domain.

  • force
    Type: System.Boolean

    If true, get even if the client is up to date according to the LocalVersion table.

  • noGet
    Type: System.Boolean

    If no get is supplied this tells the server the client is not intending to retrieve the items. It is calling as an informational command.

  • maxResults
    Type: System.Int32

    Limit total number of results that can be returned.

  • options
    Type: System.Int32

    Bitmap of options for the get operation.

Return Value

Type: System.Collections.Generic.List<StreamingCollection<GetOperation>>
One result per request.

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace