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: 11.3.10719
Syntax
public virtual Task RenderAsync(
	ContextAsync<IHierarchyItemAsync> context,
	IHierarchyItemBaseAsync item,
	bool renderContent
)

public virtual Task RenderAsync(
	ContextAsync<IHierarchyItemAsync> context,
	IHierarchyItemBaseAsync item,
	bool renderContent
)

Parameters

context
Type: ITHit.ServerContextAsyncIHierarchyItemAsync
Instance of ContextAsyncTHierarchyItemAsync.
item
Type: ITHit.ServerIHierarchyItemBaseAsync
Instance of IHierarchyItemBaseAsync.
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.IHierarchyItemAsync},ITHit.Server.IHierarchyItemBaseAsync,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