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
)
Public Overrides Function RenderAsync (
context As ContextAsync(Of IHierarchyItem),
item As IHierarchyItemBase,
renderContent As Boolean
) As Task
public:
virtual Task^ RenderAsync(
ContextAsync<IHierarchyItem^>^ context,
IHierarchyItemBase^ item,
bool renderContent
) override
abstract RenderAsync :
context : ContextAsync<IHierarchyItem> *
item : IHierarchyItemBase *
renderContent : bool -> Task
override RenderAsync :
context : ContextAsync<IHierarchyItem> *
item : IHierarchyItemBase *
renderContent : bool -> Task
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