C# Class Client.WebDavResource

Inheritance: IResource
Show file Open project: ringostarr80/WebDav.NET

Public Methods

Method Description
Delete ( ) : void

Deletes this item.

Download ( string filename ) : void

Downloads content of the resource to a file specified by filename

GetAllProperties ( ) : Property[]

Retrieves all custom properties exposed by the item.

GetPropertyNames ( ) : Client.PropertyName[]

Returns names of all custom properties exposed by this item.

GetPropertyValues ( PropertyName names ) : Property[]

Retrieves values of specific properties.

GetReadStream ( ) : Stream

Loads content of the resource from WebDAV server.

GetWriteStream ( long contentLength ) : Stream

Saves resource's content to WebDAV server.

GetWriteStream ( string contentType, long contentLength ) : Stream

Saves resource's content to WebDAV server.

SetComment ( string comment ) : void

For internal use only.

SetCreationDate ( System.DateTime creationDate ) : void

For internal use only.

SetCreationDate ( string creationDate ) : void

For internal use only.

SetCreatorDisplayName ( string creatorDisplayName ) : void

For internal use only.

SetCredentials ( ICredentials credentials ) : void

For internal use only.

SetHierarchyItem ( IHierarchyItem item ) : void

For internal use only.

SetHref ( Uri href ) : void

For internal use only.

SetHref ( string href, Uri baseUri ) : void

For internal use only.

SetLastModified ( System.DateTime lastModified ) : void

For internal use only.

SetLastModified ( string lastModified ) : void

For internal use only.

SetProperties ( Property properties ) : void

For internal use only.

SetProperty ( Property property ) : void

For internal use only.

SetProperty ( PropertyName propertyName, string value ) : void

For internal use only.

SetProperty ( string name, string nameSpace, string value ) : void

For internal use only.

Upload ( string filename ) : void

Uploads content of a file specified by filename to the server

Method Details

Delete() public method

Deletes this item.
public Delete ( ) : void
return void

Download() public method

Downloads content of the resource to a file specified by filename
public Download ( string filename ) : void
filename string Full path of a file to be downloaded to
return void

GetAllProperties() public method

Retrieves all custom properties exposed by the item.
public GetAllProperties ( ) : Property[]
return Property[]

GetPropertyNames() public method

Returns names of all custom properties exposed by this item.
public GetPropertyNames ( ) : Client.PropertyName[]
return Client.PropertyName[]

GetPropertyValues() public method

Retrieves values of specific properties.
public GetPropertyValues ( PropertyName names ) : Property[]
names PropertyName
return Property[]

GetReadStream() public method

Loads content of the resource from WebDAV server.
public GetReadStream ( ) : Stream
return Stream

GetWriteStream() public method

Saves resource's content to WebDAV server.
public GetWriteStream ( long contentLength ) : Stream
contentLength long Length of data to be written.
return Stream

GetWriteStream() public method

Saves resource's content to WebDAV server.
public GetWriteStream ( string contentType, long contentLength ) : Stream
contentType string Media type of the resource.
contentLength long Length of data to be written.
return Stream

SetComment() public method

For internal use only.
public SetComment ( string comment ) : void
comment string
return void

SetCreationDate() public method

For internal use only.
public SetCreationDate ( System.DateTime creationDate ) : void
creationDate System.DateTime
return void

SetCreationDate() public method

For internal use only.
public SetCreationDate ( string creationDate ) : void
creationDate string
return void

SetCreatorDisplayName() public method

For internal use only.
public SetCreatorDisplayName ( string creatorDisplayName ) : void
creatorDisplayName string
return void

SetCredentials() public method

For internal use only.
public SetCredentials ( ICredentials credentials ) : void
credentials ICredentials
return void

SetHierarchyItem() public method

For internal use only.
public SetHierarchyItem ( IHierarchyItem item ) : void
item IHierarchyItem
return void

SetHref() public method

For internal use only.
public SetHref ( Uri href ) : void
href System.Uri
return void

SetHref() public method

For internal use only.
public SetHref ( string href, Uri baseUri ) : void
href string
baseUri System.Uri
return void

SetLastModified() public method

For internal use only.
public SetLastModified ( System.DateTime lastModified ) : void
lastModified System.DateTime
return void

SetLastModified() public method

For internal use only.
public SetLastModified ( string lastModified ) : void
lastModified string
return void

SetProperties() public method

For internal use only.
public SetProperties ( Property properties ) : void
properties Property
return void

SetProperty() public method

For internal use only.
public SetProperty ( Property property ) : void
property Property
return void

SetProperty() public method

For internal use only.
public SetProperty ( PropertyName propertyName, string value ) : void
propertyName PropertyName
value string
return void

SetProperty() public method

For internal use only.
public SetProperty ( string name, string nameSpace, string value ) : void
name string
nameSpace string
value string
return void

Upload() public method

Uploads content of a file specified by filename to the server
public Upload ( string filename ) : void
filename string Full path of a file to be uploaded from
return void