IFolderItemExists Method
IT Hit WebDAV Classes Reference
Checks whether specified item exists in the folder.
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax bool ItemExists(
string name
)
Function ItemExists (
name As String
) As Boolean
bool ItemExists(
String^ name
)
abstract ItemExists :
name : string -> bool
Parameters
- name
- Type: SystemString
Item's name
Return Value
Type:
BooleanTrue, if specified item exists; false, otherwise.
Examples string license = "<?xml version='1.0' encoding='utf...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFolder srcFolder = session.OpenFolder(new Uri("http://server:8080/Library/"));
bool isItemExists = srcFolder.ItemExists("image.gif");
if(isItemExists)
Console.WriteLine("Item exists");
else
Console.WriteLine("Item not found");
See Also