Class EntryTarget
The base class of all existing targets
Inherited Members
Namespace:FubarDev.WebDavServer.Engines.Local
Assembly:FubarDev.WebDavServer.dll
Syntax
public abstract class EntryTarget : IExistingTarget, ITarget
Constructors
| Improve this Doc View SourceEntryTarget(ITargetActions<CollectionTarget, DocumentTarget, MissingTarget>, CollectionTarget, Uri, IEntry)
Initializes a new instance of the EntryTarget class.
Declaration
protected EntryTarget(ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> targetActions, [CanBeNull] CollectionTarget parent, [NotNull] Uri destinationUrl, [NotNull] IEntry entry)
Parameters
Type | Name | Description |
---|---|---|
ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> | targetActions | The target actions implementation to use |
CollectionTarget | parent | The parent collection |
Uri | destinationUrl | The destination URL for this entry |
IEntry | entry | The underlying entry |
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 collection target
Declaration
[CanBeNull]
public CollectionTarget Parent { get; }
Property Value
Type | Description |
---|---|
CollectionTarget |
TargetActions
Gets the target actions implementation to use
Declaration
[NotNull]
protected ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> TargetActions { get; }
Property Value
Type | Description |
---|---|
ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> |
Methods
| Improve this Doc View SourceSetPropertiesAsync(IEnumerable<IUntypedWriteableProperty>, CancellationToken)
Sets the properties of an existing target
Declaration
[ItemNotNull]
public Task<IReadOnlyCollection<XName>> SetPropertiesAsync([NotNull, ItemNotNull] 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 |