共用方式為


DiscussionThreadsController Class

Inheritance Hierarchy

System.Object
  System.Web.Http.ApiController
    Microsoft.TeamFoundation.Framework.Server.TfsApiController
      Microsoft.TeamFoundation.Discussion.Server.DiscussionThreadsController

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

Syntax

'Declaration
Public Class DiscussionThreadsController _
    Inherits TfsApiController
public class DiscussionThreadsController : TfsApiController
public ref class DiscussionThreadsController : public TfsApiController
type DiscussionThreadsController =  
    class 
        inherit TfsApiController 
    end
public class DiscussionThreadsController extends TfsApiController

The DiscussionThreadsController type exposes the following members.

Constructors

  Name Description
Public method DiscussionThreadsController

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 (Inherited from TfsApiController.)
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 (Inherited from TfsApiController.)
Public property Url (Inherited from ApiController.)
Public property User (Inherited from ApiController.)

Top

Methods

  Name Description
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 GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetThread Read a discussion thread by id GET /_apis/discussion/threads/{discussionId}
Public method GetThreads(Int32) Query discussion threads by work item id GET /_apis/discussion/threads?workItemId={workItemId}
Public method GetThreads(array<String[]) Query discussion threads by artifact uri GET /_apis/discussion/threads?artifactUri={artifactUri}
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 PostThread
Public method PostThreads
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UpdateThread

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.Discussion.Server Namespace