共用方式為


TeamFoundationVersionControlService.Get Method (TeamFoundationRequestContext, String, String, array<GetRequest[], Int32, GetOptions, array<String[], array<String , PathLength)

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
Public Function Get ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    ownerName As String, _
    requests As GetRequest(), _
    maxResults As Integer, _
    getOptions As GetOptions, _
    itemPropertyFilters As String(), _
    itemAttributeFilters As String(), _
    maxClientPathLength As PathLength _
) As TeamFoundationDataReader
public TeamFoundationDataReader Get(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string ownerName,
    GetRequest[] requests,
    int maxResults,
    GetOptions getOptions,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters,
    PathLength maxClientPathLength
)
public:
TeamFoundationDataReader^ Get(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ ownerName, 
    array<GetRequest^>^ requests, 
    int maxResults, 
    GetOptions getOptions, 
    array<String^>^ itemPropertyFilters, 
    array<String^>^ itemAttributeFilters, 
    PathLength maxClientPathLength
)
member Get : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        ownerName:string * 
        requests:GetRequest[] * 
        maxResults:int * 
        getOptions:GetOptions * 
        itemPropertyFilters:string[] * 
        itemAttributeFilters:string[] * 
        maxClientPathLength:PathLength -> TeamFoundationDataReader
public function Get(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    ownerName : String, 
    requests : GetRequest[], 
    maxResults : int, 
    getOptions : GetOptions, 
    itemPropertyFilters : String[], 
    itemAttributeFilters : String[], 
    maxClientPathLength : PathLength
) : TeamFoundationDataReader

Parameters

  • ownerName
    Type: System.String

    Workspace owner user name, including domain.

  • maxResults
    Type: System.Int32

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

  • itemPropertyFilters
    Type: array<System.String[]

    Limit total number of results that can be returned. A value of 0 indicates no limit. Allows a client to page Get operations. Successive calls will automatically advance the results as the client processes the previous page. This is incompatible with force option.

  • itemAttributeFilters
    Type: array<System.String[]

    Bitmap of options for the get operation

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: GetOperaton[][] - The list of items that were destroyed

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Get Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace