Click or drag to resize

NeedPrivilegesExceptionRenderAsync Method

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

Namespace:  ITHit.WebDAV.Server.Acl
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax
public override 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
Whether contents shall be written to output.

Return Value

Type: Task

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

Remarks
If exception is rendered 'inline', then it shall write only it's body. Text in Message shall be omitted because it will be written as part of MultistatusException exception.
<D:error xmlns:D="DAV:">
   <D:must-be-checked-out/>
</D:error>
Otherwise 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