Share via


TfsGitRepositoryRefsCollection.Write Method (TeamFoundationRequestContext, IEnumerable<TfsGitRefUpdateRequest>, IEnumerable<array<Byte >, DateTime%)

Writes the provided set of refs to the repository.

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

Syntax

'Declaration
Public Function Write ( _
    requestContext As TeamFoundationRequestContext, _
    requests As IEnumerable(Of TfsGitRefUpdateRequest), _
    commitIdsInRefs As IEnumerable(Of Byte()), _
    <OutAttribute> ByRef pushTime As DateTime _
) As IEnumerable(Of TfsGitRefUpdateResult)
public IEnumerable<TfsGitRefUpdateResult> Write(
    TeamFoundationRequestContext requestContext,
    IEnumerable<TfsGitRefUpdateRequest> requests,
    IEnumerable<byte[]> commitIdsInRefs,
    out DateTime pushTime
)
public:
IEnumerable<TfsGitRefUpdateResult^>^ Write(
    TeamFoundationRequestContext^ requestContext, 
    IEnumerable<TfsGitRefUpdateRequest^>^ requests, 
    IEnumerable<array<unsigned char>^>^ commitIdsInRefs, 
    [OutAttribute] DateTime% pushTime
)
member Write : 
        requestContext:TeamFoundationRequestContext * 
        requests:IEnumerable<TfsGitRefUpdateRequest> * 
        commitIdsInRefs:IEnumerable<byte[]> * 
        pushTime:DateTime byref -> IEnumerable<TfsGitRefUpdateResult> 
public function Write(
    requestContext : TeamFoundationRequestContext, 
    requests : IEnumerable<TfsGitRefUpdateRequest>, 
    commitIdsInRefs : IEnumerable<byte[]>, 
    pushTime : DateTime
) : IEnumerable<TfsGitRefUpdateResult>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TfsGitRefUpdateResult>
A set of TfsGitRefUpdateResult objects describing the results of the operation. The order of the TfsGitRefUpdateResult objects is identical to the order of the requests that were passed in.

.NET Framework Security

See Also

Reference

TfsGitRepositoryRefsCollection Class

Write Overload

Microsoft.TeamFoundation.Git.Server Namespace