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
- application
Type: System.Web.HttpApplication
statusCode
Type: System.Net.HttpStatusCodeThe http status code to return
statusDescription
Type: System.StringOptional status description text. Pass null for the default status description message.
extraHeaders
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>Optional http header pairs.
exception
Type: System.ExceptionOptional exception object to infer statusCode, statusDescription, errorMessage and the responseText
errorMessage
Type: System.StringThe error message
- responseText
Type: System.String
.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.