Deletes the specified shelveset. All associated shelved changes are removed also.
Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Sub DeleteShelveset ( _
    requestContext As TeamFoundationRequestContext, _
    shelvesetName As String, _
    ownerName As String _
)
public void DeleteShelveset(
    TeamFoundationRequestContext requestContext,
    string shelvesetName,
    string ownerName
)
public:
void DeleteShelveset(
    TeamFoundationRequestContext^ requestContext, 
    String^ shelvesetName, 
    String^ ownerName
)
member DeleteShelveset : 
        requestContext:TeamFoundationRequestContext * 
        shelvesetName:string * 
        ownerName:string -> unit
public function DeleteShelveset(
    requestContext : TeamFoundationRequestContext, 
    shelvesetName : String, 
    ownerName : String
)
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- shelvesetName 
 Type: System.String- Name of the shelveset. 
- ownerName 
 Type: System.String- User name of the shelveset's owner including domain. 
.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.