WebDAV .NET Class Library
WebDAV .NET Class Library
WebDAV .NET
Independentsoft.Webdav
Resource Class
Resource Methods
ChangeProperty Method
Copy Method
CreateCollection Method
CreateFolder Method
Delete Method
Download Method
DownloadFile Method
Exists Method
GetAllowedMethods Method
GetInputStream Method
GetLock Method
GetOutputStream Method
GetProperties Method
GetPropertiesAsXml Method
GetProperty Method
GetPropertyNames Method
GetRequest Method
GetSize Method
GetSupportedDavLevel Method
GetSupportedLock Method
Head Method
IsCollection Method
IsLocked Method
List Method
ListWithProperties Method
Lock Method
Move Method
Options Method
RefreshLock Method
RemoveProperty Method
SetProperty Method
Unlock Method
Upload Method
UploadFile Method

# Resource Methods

The Resource type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| ChangeProperty( Property , Property ) | Sets (adds) and removes properties to/from a resource.
| ChangeProperty( Property , PropertyName ) | Sets (adds) and removes properties to/from a resource.
| ChangeProperty(String, Property , Property ) | Sets (adds) and removes properties to/from a resource.
| ChangeProperty(String, Property , PropertyName ) | Sets (adds) and removes properties to/from a resource.
| Copy(String, String) | Copies an existing resource to a new resource. Overwriting a existing resource is not allowed.
| Copy(String, String, Boolean) | Copies an existing resource to a new resource. Overwriting a existing resource is allowed if parameter overwrite is true.
| Copy(String, String, Boolean, Boolean) | Copies an existing resource to a new resource. Overwriting a existing resource is allowed if parameter overwrite is true.
| CreateCollection | Create a collection with the given URI. The method is same as CreateFolder.
| CreateFolder | Create a folder with the given URI. The method is same as CreateCollection.
| Delete | Deletes the current resource.
| Delete(String) | Deletes the resource specified with URI.
| Download(String, Stream) | Downloads data from a resource with the specified URI (address) to a stream.
| Download(String, String) | Downloads data from a resource with the specified URI (address) to a local file.
| Download(String, Stream, Int32) | Downloads data from a resource with the specified URI (address) to a stream.
| Download(String, String, Int32) | Downloads data from a resource with the specified URI (address) to a local file.
| DownloadFile(String, Stream) | Downloads data from a resource with the specified URI (address) to a stream.
| DownloadFile(String, String) | Downloads data from a resource with the specified URI (address) to a local file.
| DownloadFile(String, Stream, Int32) | Downloads data from a resource with the specified URI (address) to a stream.
| DownloadFile(String, String, Int32) | Downloads data from a resource with the specified URI (address) to a local file.
| Equals | (Inherited from Object.)
| Exists | Determines whether the specified resource exists.
| Exists(String) | Determines whether the specified resource exists.
| Finalize | (Inherited from Object.)
| GetAllowedMethods | Gets the all allowed methods.
| GetAllowedMethods(String) | Gets the all allowed methods.
| GetHashCode | (Inherited from Object.)
| GetInputStream | Returns the data stream from the resource.
| GetInputStream(String) | Returns the data stream from the resource.
| GetLock | Gets the locks that exist on this resource.
| GetLock(String) | Gets the locks that exist on this resource.
| GetOutputStream | Returns a Stream for writing data to the resource.
| GetOutputStream(String) | Returns a Stream for writing data to the resource.
| GetProperties | Gets all properties from the resource.
| GetProperties(String) | Gets all properties from the resource.
| GetProperties(String, String) | Gets all properties from the resource.
| GetProperties( PropertyName , String) | Gets properties from a resource.
| GetProperties(String, PropertyName , String) | Gets properties from a resource.
| GetPropertiesAsXml | Gets all properties from the resource.
| GetPropertiesAsXml(String) | Gets all properties from the resource.
| GetProperty(String) | Gets the property from a resource.
| GetProperty(PropertyName) | Gets the property from a resource.
| GetProperty(String, PropertyName) | Gets the property from a resource.
| GetProperty(String, String) | Gets the property from a resource.
| GetPropertyNames | Gets all properties names from a resource.
| GetPropertyNames(String) | Gets all properties names from a resource.
| GetPropertyNames(String, String) | Gets all properties names from a resource.
| GetRequest | Gets the HttpWebRequest object for the current HTTP request.
| GetSize | Gets size of resource.
| GetSize(String) | Gets size of resource.
| GetSupportedDavLevel | Gets the DAV header value.
| GetSupportedDavLevel(String) | Gets the DAV header value.
| GetSupportedLock | Gets the supportedlock property value.
| GetSupportedLock(String) | Gets the supportedlock property value.
| GetType | (Inherited from Object.)
| Head | Executes HEAD Http protocol method.
| Head(String) | Executes HEAD Http protocol method.
| IsCollection | Returns a boolean indicating whether this resource is a collection.
| IsCollection(String) | Returns a boolean indicating whether this resource is a collection.
| IsLocked | Returns a boolean indicating whether this resource is locked.
| IsLocked(String) | Returns a boolean indicating whether this resource is locked.
| List | Displays a list of resource URLs.
| List(Boolean) | Displays a list of resource URLs.
| List(String) | Displays a list of resources in a collection.
| List(String, PropertyName ) | Displays a list of ResourceInfo.
| List(String, Boolean) | Displays a list of resource URLs.
| List(String, PropertyName , Boolean) | Displays a list of ResourceInfo.
| ListWithProperties( PropertyName ) | Obsolete. Displays a list of subresources and their name and properties.
| ListWithProperties(String, PropertyName ) | Obsolete. Displays a list of subresources and their name and properties.
| ListWithProperties( PropertyName , Boolean) | Obsolete. Displays a list of subresources and their name and properties.
| ListWithProperties(String, PropertyName , Boolean) | Obsolete. Displays a list of subresources and their name and properties.
| Lock | Lock the current resource.
| Lock(Int32) | Lock a resource based on the given parameters.
| Lock(String) | Lock a resource based on the given parameters.
| Lock(ActiveLock) | Lock a resource based on the given parameters.
| Lock(String, ActiveLock) | Lock a resource based on the given parameters.
| Lock(String, Int32) | Lock a resource based on the given parameters.
| Lock(String, String) | Lock a resource based on the given parameters.
| Lock(String, String, Int32) | Lock a resource based on the given parameters.
| Lock(String, String, String) | Lock a resource based on the given parameters.
| MemberwiseClone | (Inherited from Object.)
| Move(String, String) | Moves a specified source resource to a destination resource. Overwriting existing resource is not allowed.
| Move(String, String, Boolean) | Moves a specified source resource to a destination resource.
| Options | Executes OPTIONS Http protocol method.
| Options(String) | Executes OPTIONS Http protocol method.
| RefreshLock(ActiveLock) | Refresh the lock on this resource by resetting the lock timeout.
| RefreshLock(Int32, ActiveLock) | Refresh the lock on this resource by resetting the lock timeout.
| RefreshLock(Int32, String) | Refresh the lock on this resource by resetting the lock timeout.
| RefreshLock(String, Int32, ActiveLock) | Refresh the lock on a resource by resetting the lock timeout.
| RefreshLock(String, Int32, String) | Refresh the lock on this resource by resetting the lock timeout.
| RefreshLock(String, String, ActiveLock) | Refresh the lock on a resource by resetting the lock timeout.
| RefreshLock(String, String, String) | Refresh the lock on this resource by resetting the lock timeout.
| RemoveProperty(String) | Removes the property from the resource.
| RemoveProperty( Property ) | Remove a property from a resource.
| RemoveProperty(PropertyName) | Remove a property from a resource.
| RemoveProperty( PropertyName ) | Remove a property from a resource.
| RemoveProperty(String, Property) | Remove a property from a resource.
| RemoveProperty(String, Property ) | Remove a property from a resource.
| RemoveProperty(String, PropertyName) | Remove a property from a resource.
| RemoveProperty(String, PropertyName ) | Remove a property from a resource.
| RemoveProperty(String, String) | Remove a property from a resource.
| RemoveProperty(String, String, String) | Remove a property from a resource.
| SetProperty(Property) | Sets a property on a resource.
| SetProperty( Property ) | Sets a property on a resource.
| SetProperty(String, Property) | Sets a property on a resource.
| SetProperty(String, Property ) | Sets a property on a resource.
| SetProperty(String, String) | Sets a property on a resource.
| SetProperty( Property , Property ) | Sets (adds) and removes properties to/from a resource.
| SetProperty( Property , PropertyName ) | Sets (adds) and removes properties to/from a resource.
| SetProperty(String, Property , Property ) | Sets (adds) and removes properties to/from a resource.
| SetProperty(String, Property , PropertyName ) | Sets (adds) and removes properties to/from a resource.
| SetProperty(String, String, String) | Sets a property on a resource.
| SetProperty(String, String, String, String) | Sets a property on a resource.
| ToString | (Inherited from Object.)
| Unlock | Unlock the lock on this resource.
| Unlock(String) | Unlock the lock on the resource identifies by address.
| Unlock(ActiveLock) | Unlock the lock on this resource.
| Unlock( ActiveLock ) | Unlock the locks on this resource.
| Unlock(String, ActiveLock) | Unlock the lock on a resource.
| Unlock(String, ActiveLock ) | Unlock the locks on a resource.
| Unlock(String, String) | Unlock the lock identified by the lockToken on this resource.
| Upload(String, Stream) | Uploads a data from stream a resource with the specified URI.
| Upload(String, String) | Uploads a local file to a resource with the specified URI.
| Upload(String, Stream, ContentRange) | Uploads a data from stream a resource with the specified URI.
| Upload(String, Stream, Int32) | Uploads a data from stream a resource with the specified URI.
| Upload(String, String, ContentRange) | Uploads a local file to a resource with the specified URI.
| Upload(String, String, Int32) | Uploads a local file to a resource with the specified URI.
| Upload(String, Stream, Int32, ContentRange) | Uploads a data from stream a resource with the specified URI.
| Upload(String, String, Int32, ContentRange) | Uploads a local file to a resource with the specified URI.
| UploadFile(String, String) | Uploads a local file to a resource with the specified URI.
| UploadFile(String, String, ContentRange) | Uploads a local file to a resource with the specified URI.
| UploadFile(String, String, Int32) | Uploads a local file to a resource with the specified URI.
| UploadFile(String, String, Int32, ContentRange) | Uploads a local file to a resource with the specified URI.

Top
See Also

#### Reference

Resource Class
Independentsoft.Webdav Namespace

Copyright 2022 Independentsoft

Send comments on this topic to support@independentsoft.de