WebDavExtensions GetItem Method WebDAV#
Retrieves a store item through the specified Uri from the specified WebDavServer and IWebDavStore.

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

Parameters

uri
Type: System Uri
The Uri to retrieve the store item for.
server
Type: WebDAVSharp.Server WebDavServer
The WebDavServer that hosts the store.
store
Type: WebDAVSharp.Server.Stores IWebDavStore
The IWebDavStore from which to retrieve the store item.

Return Value

Type: IWebDavStoreItem
The retrieved store item.

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
ArgumentNullException

uri is null.

server is null.

store is null.

WebDavNotFoundExceptionIf the item was not found.
WebDavConflictExceptionuri refers to a document in a collection, where the collection does not exist.
WebDavNotFoundExceptionuri refers to a document that does not exist.
See Also