Class RemoteCollectionTarget
The remote server collection target
Inherited Members
Namespace:FubarDev.WebDavServer.Engines.Remote
Assembly:FubarDev.WebDavServer.dll
Syntax
public class RemoteCollectionTarget : ICollectionTarget<RemoteCollectionTarget, RemoteDocumentTarget, RemoteMissingTarget>, IExistingTarget, ITarget
Constructors
| Improve this Doc View SourceRemoteCollectionTarget(RemoteCollectionTarget, String, Uri, Boolean, IRemoteTargetActions)
Initializes a new instance of the RemoteCollectionTarget class.
Declaration
public RemoteCollectionTarget([CanBeNull] RemoteCollectionTarget parent, [NotNull] string name, [NotNull] Uri destinationUrl, bool created, [NotNull] IRemoteTargetActions targetActions)
Parameters
Type | Name | Description |
---|---|---|
RemoteCollectionTarget | parent | The parent collection |
String | name | The name of the remote collection |
Uri | destinationUrl | The destination URL |
Boolean | created | Was the collection created by the RecursiveExecutionEngine<TCollection, TDocument, TMissing> |
IRemoteTargetActions | targetActions | The target actions implementation to use |
Properties
| Improve this Doc View SourceCreated
Declaration
public bool Created { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
| Improve this Doc View SourceDestinationUrl
Gets the destination URL of the target
Declaration
public Uri DestinationUrl { get; }
Property Value
Type | Description |
---|---|
Uri |
Implements
| Improve this Doc View SourceName
Gets the name of the target
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Implements
Methods
| Improve this Doc View SourceDeleteAsync(CancellationToken)
Declaration
public Task<RemoteMissingTarget> DeleteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<RemoteMissingTarget> |
Implements
| Improve this Doc View SourceGetAsync(String, CancellationToken)
Declaration
public Task<ITarget> GetAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ITarget> |
Implements
| Improve this Doc View SourceNewMissing(String)
Declaration
public RemoteMissingTarget NewMissing(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Returns
Type | Description |
---|---|
RemoteMissingTarget |
Implements
| Improve this Doc View SourceSetPropertiesAsync(IEnumerable<IUntypedWriteableProperty>, CancellationToken)
Sets the properties of an existing target
Declaration
public Task<IReadOnlyCollection<XName>> SetPropertiesAsync(IEnumerable<IUntypedWriteableProperty> properties, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IUntypedWriteableProperty> | properties | The source properties |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<IReadOnlyCollection<XName>> | The list of property names that couldn't be set |