Shelveset Constructor
Initializes a Shelveset object for shelving changes.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Sub New ( _
sourceControl As VersionControlServer, _
name As String, _
owner As String _
)
'Usage
Dim sourceControl As VersionControlServer
Dim name As String
Dim owner As String
Dim instance As New Shelveset(sourceControl, _
name, owner)
public Shelveset(
VersionControlServer sourceControl,
string name,
string owner
)
public:
Shelveset(
VersionControlServer^ sourceControl,
String^ name,
String^ owner
)
public function Shelveset(
sourceControl : VersionControlServer,
name : String,
owner : String
)
Parameters
sourceControl
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlServerSource control object representing the database on which the shelveset will be created.
name
Type: System.StringThe name of the shelveset.
owner
Type: System.StringThe owner of the shelveset.
Exceptions
Exception | Condition |
---|---|
[InvalidShelvesetName] | Thrown when the shelveset is not a valid name. |
.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.