C# Class WebDav.WebDavResource.Builder

Represents a builder of the WebDavResource class.
显示文件 Open project: skazantsev/WebDavClient Class Usage Examples

Public Methods

Method Description
Build ( ) : WebDavResource

Builds a new instance of the WebDavResource class.

IsCollection ( ) : Builder

Sets the IsCollection parameter of an instance of the WebDavResource class to true.

IsHidden ( ) : Builder

Sets the IsHidden parameter of an instance of the WebDavResource class to true.

IsNotCollection ( ) : Builder

Sets the IsCollection parameter of an instance of the WebDavResource class to false.

IsNotHidden ( ) : Builder

Sets the IsHidden parameter of an instance of the WebDavResource class to false.

WithActiveLocks ( IReadOnlyCollection activeLocks ) : Builder

Sets the ActiveLocks parameter of an instance of the WebDavResource class.

WithContentLanguage ( string contentLanguage ) : Builder

Sets the ContentLanguage parameter of an instance of the WebDavResource class.

WithContentLength ( int contentLength ) : Builder

Sets the ContentLength parameter of an instance of the WebDavResource class.

WithContentType ( string contentType ) : Builder

Sets the ContentType parameter of an instance of the WebDavResource class.

WithCreationDate ( System.DateTime creationDate ) : Builder

Sets the CreationDate parameter of an instance of the WebDavResource class.

WithDisplayName ( string displayName ) : Builder

Sets the DisplayName parameter of an instance of the WebDavResource class.

WithETag ( string eTag ) : Builder

Sets the ETag parameter of an instance of the WebDavResource class.

WithLastModifiedDate ( System.DateTime lastModifiedDate ) : Builder

Sets the LastModifiedDate parameter of an instance of the WebDavResource class.

WithProperties ( IReadOnlyCollection properties ) : Builder

Sets the Properties parameter of an instance of the WebDavResource class.

WithPropertyStatuses ( IReadOnlyCollection propertyStatuses ) : Builder

Sets the PropertyStatuses parameter of an instance of the WebDavResource class.

WithUri ( string uri ) : Builder

Sets the Uri parameter of an instance of the WebDavResource class.

Method Details

Build() public method

Builds a new instance of the WebDavResource class.
public Build ( ) : WebDavResource
return WebDavResource

IsCollection() public method

Sets the IsCollection parameter of an instance of the WebDavResource class to true.
public IsCollection ( ) : Builder
return Builder

IsHidden() public method

Sets the IsHidden parameter of an instance of the WebDavResource class to true.
public IsHidden ( ) : Builder
return Builder

IsNotCollection() public method

Sets the IsCollection parameter of an instance of the WebDavResource class to false.
public IsNotCollection ( ) : Builder
return Builder

IsNotHidden() public method

Sets the IsHidden parameter of an instance of the WebDavResource class to false.
public IsNotHidden ( ) : Builder
return Builder

WithActiveLocks() public method

Sets the ActiveLocks parameter of an instance of the WebDavResource class.
public WithActiveLocks ( IReadOnlyCollection activeLocks ) : Builder
activeLocks IReadOnlyCollection
return Builder

WithContentLanguage() public method

Sets the ContentLanguage parameter of an instance of the WebDavResource class.
public WithContentLanguage ( string contentLanguage ) : Builder
contentLanguage string
return Builder

WithContentLength() public method

Sets the ContentLength parameter of an instance of the WebDavResource class.
public WithContentLength ( int contentLength ) : Builder
contentLength int
return Builder

WithContentType() public method

Sets the ContentType parameter of an instance of the WebDavResource class.
public WithContentType ( string contentType ) : Builder
contentType string
return Builder

WithCreationDate() public method

Sets the CreationDate parameter of an instance of the WebDavResource class.
public WithCreationDate ( System.DateTime creationDate ) : Builder
creationDate System.DateTime
return Builder

WithDisplayName() public method

Sets the DisplayName parameter of an instance of the WebDavResource class.
public WithDisplayName ( string displayName ) : Builder
displayName string
return Builder

WithETag() public method

Sets the ETag parameter of an instance of the WebDavResource class.
public WithETag ( string eTag ) : Builder
eTag string
return Builder

WithLastModifiedDate() public method

Sets the LastModifiedDate parameter of an instance of the WebDavResource class.
public WithLastModifiedDate ( System.DateTime lastModifiedDate ) : Builder
lastModifiedDate System.DateTime
return Builder

WithProperties() public method

Sets the Properties parameter of an instance of the WebDavResource class.
public WithProperties ( IReadOnlyCollection properties ) : Builder
properties IReadOnlyCollection
return Builder

WithPropertyStatuses() public method

Sets the PropertyStatuses parameter of an instance of the WebDavResource class.
public WithPropertyStatuses ( IReadOnlyCollection propertyStatuses ) : Builder
propertyStatuses IReadOnlyCollection
return Builder

WithUri() public method

Sets the Uri parameter of an instance of the WebDavResource class.
public WithUri ( string uri ) : Builder
uri string
return Builder