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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context with which the request should be issued.
requests
Type: System.Collections.Generic.IEnumerable<TfsGitRefUpdateRequest>The ref update requests to perform.
- commitIdsInRefs
Type: System.Collections.Generic.IEnumerable<array<Byte[]>
- pushTime
Type: System.DateTime%
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.