WebDavMethodHandlerBase GetParentCollection Method WebDAV#
Get the parent collection from the requested Uri. WebDavException 409 Conflict possible.

Namespace: WebDAVSharp.Server.MethodHandlers
Assembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static IWebDavStoreCollection GetParentCollection(
	WebDavServer server,
	IWebDavStore store,
	Uri childUri
)

Parameters

server
Type: WebDAVSharp.Server WebDavServer
The WebDavServer through which the request came in from the client.
store
Type: WebDAVSharp.Server.Stores IWebDavStore
The IWebDavStore that the WebDavServer is hosting.
childUri
Type: System Uri
The Uri object containing the specific location of the child

Return Value

Type: IWebDavStoreCollection
The parrent collection as an IWebDavStoreCollection
Exceptions
ExceptionCondition
WebDavUnauthorizedException
WebDavConflictException
WebDavUnauthorizedExceptionWhen the user is unauthorized and doesn't have access
WebDavConflictExceptionWhen the parent collection doesn't exist
See Also