Click or drag to resize

MultistatusExceptionRenderAsync 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.1.12216-Beta
Syntax
public override Task RenderAsync(
	ContextAsync<IHierarchyItem> context,
	IHierarchyItemBase item,
	bool renderContent
)

Parameters

context
Type: ITHit.ServerContextAsyncIHierarchyItem
Instance of ContextAsyncTHierarchyItemAsync.
item
Type: ITHit.ServerIHierarchyItemBase
Instance of IHierarchyItemBase.
renderContent
Type: SystemBoolean
Whether content shall be written to output.

Return Value

Type: Task

[Missing <returns> documentation for "M:ITHit.WebDAV.Server.MultistatusException.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