WebDavExtensions GetPrefixUri Method WebDAV#
Gets the prefix Uri that matches the specified Uri.

Namespace: WebDAVSharp.Server
Assembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Uri GetPrefixUri(
	this Uri uri,
	WebDavServer server
)

Parameters

uri
Type: System Uri
The Uri to find the most specific prefix Uri for.
server
Type: WebDAVSharp.Server WebDavServer
The WebDavServer that hosts the WebDAV server and holds the collection of known prefixes.

Return Value

Type: Uri
The most specific Uri for the given uri.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Uri. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
WebDavInternalServerExceptionUnable to find correct server root
WebDavInternalServerExceptionuri specifies a Uri that is not known to the server.
See Also