Gets the Uri to the parent object.
Namespace: WebDAVSharp.ServerAssembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- uri
- Type: System Uri
The Uri of a resource, for which the parent Uri should be retrieved.
Return Value
Type: UriThe parent 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
Exception | Condition |
---|---|
ArgumentNullException | uri |
InvalidOperationException | Cannot get parent of root |
ArgumentNullException | uri is null. |
InvalidOperationException | uri has no parent, it refers to a root resource. |
See Also