Delen via


TeamFoundationVersionControlService.UpdateShelvesetCreationTime Method

Updates the creation time of a single shelveset, or of all the shelvesets owned by a certain user.

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

Syntax

'Declaration
Public Sub UpdateShelvesetCreationTime ( _
    requestContext As TeamFoundationRequestContext, _
    shelvesetName As String, _
    ownerName As String, _
    cutOffDate As Nullable(Of DateTime) _
)
public void UpdateShelvesetCreationTime(
    TeamFoundationRequestContext requestContext,
    string shelvesetName,
    string ownerName,
    Nullable<DateTime> cutOffDate
)
public:
void UpdateShelvesetCreationTime(
    TeamFoundationRequestContext^ requestContext, 
    String^ shelvesetName, 
    String^ ownerName, 
    Nullable<DateTime> cutOffDate
)
member UpdateShelvesetCreationTime : 
        requestContext:TeamFoundationRequestContext * 
        shelvesetName:string * 
        ownerName:string * 
        cutOffDate:Nullable<DateTime> -> unit
public function UpdateShelvesetCreationTime(
    requestContext : TeamFoundationRequestContext, 
    shelvesetName : String, 
    ownerName : String, 
    cutOffDate : Nullable<DateTime>
)

Parameters

  • shelvesetName
    Type: System.String

    (Optional) Indicates that only the shelveset with the given name should have its creation date updated.

  • ownerName
    Type: System.String

    Required. The identity whose shelveset(s) have their creation date(s) updated.

  • cutOffDate
    Type: System.Nullable<DateTime>

    (Optional) Indicates that only those shelvesets whose creation date is before the provided timestamp should be updated.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace