Click or drag to resize

DavExceptionRenderAsync Method

IT Hit WebDAV Classes Reference
Writes exception to the output writer.

Namespace:  ITHit.WebDAV.Server
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax
public virtual Task RenderAsync(
	ContextAsync<IHierarchyItem> context,
	IHierarchyItemBase item,
	bool renderContent
)

Parameters

context
Type: ITHit.ServerContextAsyncIHierarchyItem
Instance of ContextAsyncTHierarchyItem.
item
Type: ITHit.ServerIHierarchyItemBase
Instance of IHierarchyItemBase.
renderContent
Type: SystemBoolean
Some methods, like "HEAD" forbid any content in response, this parameter will be false in this case and nothing shall be written in the response.

Return Value

Type: Task

[Missing <returns> documentation for "M:ITHit.WebDAV.Server.DavException.RenderAsync(ITHit.Server.ContextAsync{ITHit.WebDAV.Server.IHierarchyItem},ITHit.Server.IHierarchyItemBase,System.Boolean)"]

Remarks
Full response shall be formed, including HTTP status and headers.
HTTP/1.1 409 Conflict
Content-Type: text/xml; charset="utf-8"
Content-Length: 97

<?xml version="1.0" encoding="utf-8" ?>
<D:error xmlns:D="DAV:">
   <D:must-be-checked-out/>
   <D:responsedescription>Item must be checked out.</D:responsedescription>
</D:error>
See Also