Class RemoteDocumentTarget
The remote server document target
Inherited Members
Namespace:FubarDev.WebDavServer.Engines.Remote
Assembly:FubarDev.WebDavServer.dll
Syntax
public class RemoteDocumentTarget : IDocumentTarget<RemoteCollectionTarget, RemoteDocumentTarget, RemoteMissingTarget>, IExistingTarget, ITarget
Constructors
| Improve this Doc View SourceRemoteDocumentTarget(RemoteCollectionTarget, String, Uri, IRemoteTargetActions)
Initializes a new instance of the RemoteDocumentTarget class.
Declaration
public RemoteDocumentTarget([NotNull] RemoteCollectionTarget parent, [NotNull] string name, [NotNull] Uri destinationUrl, [NotNull] IRemoteTargetActions targetActions)
Parameters
Type | Name | Description |
---|---|---|
RemoteCollectionTarget | parent | The parent collection |
String | name | The name of the remote document |
Uri | destinationUrl | The destination URL |
IRemoteTargetActions | targetActions | The target actions implementation to use |
Properties
| 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
| Improve this Doc View SourceParent
Gets the parent remote collection
Declaration
[NotNull]
public RemoteCollectionTarget Parent { get; }
Property Value
Type | Description |
---|---|
RemoteCollectionTarget |
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 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 |