Sends a simple response with a specified HTTP status code but no content.
Namespace: WebDAVSharp.ServerAssembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- context
- Type: WebDAVSharp.Server.Adapters IHttpListenerContext
The IHttpListenerContext to send the response through.
- statusCode (Optional)
- Type: System.Net HttpStatusCode
The HTTP status code for the response.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IHttpListenerContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
ArgumentNullException | context |
ArgumentNullException | context is null. |
See Also