Share via


TeamFoundationApplicationCore.CompleteRequest Method (HttpApplication, HttpStatusCode, String, IEnumerable<KeyValuePair<String, String>>, Exception, String, String)

Terminate the processing pipeline for a web request.

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

Syntax

'Declaration
Public Shared Sub CompleteRequest ( _
    application As HttpApplication, _
    statusCode As HttpStatusCode, _
    statusDescription As String, _
    extraHeaders As IEnumerable(Of KeyValuePair(Of String, String)), _
    exception As Exception, _
    errorMessage As String, _
    responseText As String _
)
public static void CompleteRequest(
    HttpApplication application,
    HttpStatusCode statusCode,
    string statusDescription,
    IEnumerable<KeyValuePair<string, string>> extraHeaders,
    Exception exception,
    string errorMessage,
    string responseText
)
public:
static void CompleteRequest(
    HttpApplication^ application, 
    HttpStatusCode statusCode, 
    String^ statusDescription, 
    IEnumerable<KeyValuePair<String^, String^>>^ extraHeaders, 
    Exception^ exception, 
    String^ errorMessage, 
    String^ responseText
)
static member CompleteRequest : 
        application:HttpApplication * 
        statusCode:HttpStatusCode * 
        statusDescription:string * 
        extraHeaders:IEnumerable<KeyValuePair<string, string>> * 
        exception:Exception * 
        errorMessage:string * 
        responseText:string -> unit
public static function CompleteRequest(
    application : HttpApplication, 
    statusCode : HttpStatusCode, 
    statusDescription : String, 
    extraHeaders : IEnumerable<KeyValuePair<String, String>>, 
    exception : Exception, 
    errorMessage : String, 
    responseText : String
)

Parameters

  • statusDescription
    Type: System.String

    Optional status description text. Pass null for the default status description message.

  • exception
    Type: System.Exception

    Optional exception object to infer statusCode, statusDescription, errorMessage and the responseText

.NET Framework Security

See Also

Reference

TeamFoundationApplicationCore Class

CompleteRequest Overload

Microsoft.TeamFoundation.Framework.Server Namespace