Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Collects a set of pending changes and shelves them to the server.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Sub Shelve ( _
    shelveset As Shelveset, _
    changes As PendingChange(), _
    options As ShelvingOptions _
)
public void Shelve(
    Shelveset shelveset,
    PendingChange[] changes,
    ShelvingOptions options
)
public:
void Shelve(
    Shelveset^ shelveset, 
    array<PendingChange^>^ changes, 
    ShelvingOptions options
)
member Shelve : 
        shelveset:Shelveset * 
        changes:PendingChange[] * 
        options:ShelvingOptions -> unit
public function Shelve(
    shelveset : Shelveset, 
    changes : PendingChange[], 
    options : ShelvingOptions
)
Parameters
- shelveset 
 Type: Microsoft.TeamFoundation.VersionControl.Client.Shelveset- The shelveset to create. 
- changes 
 Type: array<Microsoft.TeamFoundation.VersionControl.Client.PendingChange[]- An array of pending changes to shelve. 
- options 
 Type: Microsoft.TeamFoundation.VersionControl.Client.ShelvingOptions- One or more of the enum values (Move, None, or Replace) for the shelving command. 
.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.