Megosztás a következőn keresztül:


ContainersController Class

Controller to handle all REST calls against file containers

Inheritance Hierarchy

System.Object
  System.Web.Http.ApiController
    Microsoft.TeamFoundation.Framework.Server.TfsApiController
      Microsoft.TeamFoundation.Framework.Server.ContainersController

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

Syntax

'Declaration
<ControllerApiVersionAttribute()> _
<VersionedApiControllerCustomNameAttribute(Area := "Container", ResourceName := "Containers")> _
Public Class ContainersController _
    Inherits TfsApiController
[ControllerApiVersionAttribute()]
[VersionedApiControllerCustomNameAttribute(Area = "Container", ResourceName = "Containers")]
public class ContainersController : TfsApiController
[ControllerApiVersionAttribute()]
[VersionedApiControllerCustomNameAttribute(Area = L"Container", ResourceName = L"Containers")]
public ref class ContainersController : public TfsApiController
[<ControllerApiVersionAttribute()>]
[<VersionedApiControllerCustomNameAttribute(Area = "Container", ResourceName = "Containers")>]
type ContainersController =  
    class 
        inherit TfsApiController 
    end
public class ContainersController extends TfsApiController

The ContainersController type exposes the following members.

Constructors

  Name Description
Public method ContainersController

Top

Properties

  Name Description
Public property BaseHttpExceptions (Inherited from TfsApiController.)
Public property Configuration (Inherited from ApiController.)
Public property ControllerContext (Inherited from ApiController.)
Public property HttpExceptions (Overrides TfsApiController.HttpExceptions.)
Public property ModelState (Inherited from ApiController.)
Public property Request (Inherited from ApiController.)
Public property RequestContext The Setter is only for Unit testing purposes (Inherited from TfsApiController.)
Public property TraceArea (Overrides TfsApiController.TraceArea.)
Public property Url (Inherited from ApiController.)
Public property User (Inherited from ApiController.)

Top

Methods

  Name Description
Public method CreateItem
Public method DeleteItem Deletes the specified items in a container.
Public method Dispose() (Inherited from ApiController.)
Protected method Dispose(Boolean) (Inherited from ApiController.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExecuteAsync (Inherited from ApiController.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetContainers Gets containers filtered by a comma separated list of artifact uris, if not specified returns all containers
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetItems Gets the specifed container.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize (Inherited from TfsApiController.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method GenerateResponse (Defined by TfsApiControllerExtensions.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace