Click or drag to resize
DAVClient Class
Provides the host Connection and DAV request and response methods (DAVConnection).
Inheritance Hierarchy

Namespace: ARPDev.DAVLIB
Assembly: ARPDev.DAVLIB (in ARPDev.DAVLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class DAVClient : DAVConnection

The DAVClient type exposes the following members.

Constructors
  NameDescription
Public methodDAVClient
Constructs a new DAVClient/DAVConnection
Public methodDAVClient(String, Boolean, String, String)
Constructs a new DAVClient/DAVConnection
Public methodDAVClient(String, Int32, Boolean, String, String)
Constructs a new DAVClient/DAVConnection
Top
Methods
  NameDescription
Public methodaddDAVItem
Adds a DAV item to the server
Public methoddeleteDAVItem
Deletes a DAV item on the server
Public methoddiscoverResource
Responsible for locating a DAV Container according to it's type.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFetchFolders
This pre-populates the folder list for a connection (rather than having them be discovered/fetched on the fly)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodgetCalendarItems
Returns the items within a Calendar (or limits to the list of ItemIds defined in ItemList)
Public methodgetContactItems
Returns a list of Contacts within a collection. If ItemList is blank or Nothing, it returns everything (if it has itemids/filenames, then only those items are returned) If bGetData is true, then it will return the actual vcards for the contacts as well.
Public methodGetContainerTypeByName
Uses the name of the folder to determine the type
Public methodgetDAVFreeBusy
Fetches the free busy data calendar output for a user
Public methodGetFolder
Locates a FolderItem by it's string Name
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodgetItems
Returns the items within a collection
Public methodgetObjectRequest
Queries the URI for a DAV Collection/DAVContainer and returns its properties within DAVObject
Public methodgetObjectState
Issues a request to the server to determine the state of an object (to determine whether it has changed or not)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetXMLNodeString
Support function to return the string for a given XML Node
Public methodGetXMLNodeURI
Builds a URI Object from an XML Node value
Public methodIssueRequest
Issues a DAV Request to the DAV Host
(Inherited from DAVConnection.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNormaliseCrLf
Normalises LineFeeds to Crlf
Public methodparseDAVItemList
Issues a request for Contact data to the server and then parses the response. If ItemList is blank or Nothing, it returns everything (if it has itemids/filenames, then only those items are returned) If bGetData is true, then it will return the actual vcards for the contacts as well.
Public methodparseFreeBusyRequest
Parses the result of a free/busy request
Public methodparseObjectProperties
Parses the response returned for a given DAV Object/Collection
Public methodparseObjectResponse
Parses a DAV Object response to derive the properties of a DAVObject
Public methodparseObjectState
Parses a DAV Object State response to determine whether it has changed
Public methodparseResolveObjectRequest
Parses the response to a resolve object request
Public methodPollFolderForChanges
Polls a dav folder for changes and returns when it either expires or there is a change
Public methodresolveObjectRequest
Attempts to find and collections of a specified FolderType under the HomeSetURL
Public methodsearchForObject
Searches a returned XML Response for a given resource/object according to the specified container type (FolderType)
Public methodSetConnection
Sets the connection details
(Inherited from DAVConnection.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodupdateDAVItem
Updates a dav item on the server
Top
Fields
  NameDescription
Public fieldbLog
Used to enable/disable logging
(Inherited from DAVConnection.)
Public fieldFolderItems
List of DAVFolders represented by their string names (ie: Contacts,Calendar,Tasks,$GAL)
Public fieldisSSL
Used to denote whether or not SSL is used or not
(Inherited from DAVConnection.)
Public fieldLogString
Used to store any logged function results
(Inherited from DAVConnection.)
Public fieldPassword
User's password
(Inherited from DAVConnection.)
Public fieldPort
Service port number
(Inherited from DAVConnection.)
Public fieldProxyPassword
Proxy Server Password (if proxy is required)
(Inherited from DAVConnection.)
Public fieldProxyUserName
Proxy Server Username (if proxy is required)
(Inherited from DAVConnection.)
Public fieldServerCapability
Used to store a list of features/capabilities supported by the server
(Inherited from DAVConnection.)
Public fieldUserName
Username/Login
(Inherited from DAVConnection.)
Top
Properties
  NameDescription
Public propertyHost
Host Name or IP Address of target server
(Inherited from DAVConnection.)
Top
Remarks
Provides the host connection details and DAV request and response methods
Examples
The following example creates a simple contact and posts it to the server:

Dim davClient As DAVClient = New ARPDev.DAVLIB.DAVClient("host.example.com", false, "user@example.com", "password")
With davClient.GetFolder("Contacts")
Dim vcSimpleCard As New VCard("FirstName", "Surname", "Company", "User@example.com")
Dim oItem As DAVItem = .CreateItem(vcSimpleCard)
MsgBox("Created: " + oItem.ItemId)
End With
See Also