Class LockDiscoveryProperty
The lockdiscovery
property
Inherited Members
Namespace:FubarDev.WebDavServer.Props.Live
Assembly:FubarDev.WebDavServer.dll
Syntax
public class LockDiscoveryProperty : ILiveProperty, IUntypedReadableProperty, IProperty
Constructors
| Improve this Doc View SourceLockDiscoveryProperty(IEntry)
Initializes a new instance of the LockDiscoveryProperty class.
Declaration
public LockDiscoveryProperty([NotNull] IEntry entry)
Parameters
Type | Name | Description |
---|---|---|
IEntry | entry | The file system entry |
Fields
| Improve this Doc View SourcePropertyName
The XML property name
Declaration
public static readonly XName PropertyName
Field Value
Type | Description |
---|---|
XName |
Properties
| Improve this Doc View SourceAlternativeNames
Gets the alternative XML names
Declaration
public IReadOnlyCollection<XName> AlternativeNames { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<XName> |
Implements
| Improve this Doc View SourceCost
Gets the cost of reading the property value
Declaration
public int Cost { get; }
Property Value
Type | Description |
---|---|
Int32 |
Implements
| Improve this Doc View SourceLanguage
Gets the language of this property value
Declaration
public string Language { get; }
Property Value
Type | Description |
---|---|
String |
Implements
| Improve this Doc View SourceName
Gets the XML name of the property
Declaration
public XName Name { get; }
Property Value
Type | Description |
---|---|
XName |
Implements
Methods
| Improve this Doc View SourceGetXmlValueAsync(Boolean, Boolean, CancellationToken)
Get the XML value asynchronously
Declaration
public Task<XElement> GetXmlValueAsync(bool omitOwner, bool omitToken, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
Boolean | omitOwner | Do we want to omit the owner? |
Boolean | omitToken | Do we want to omit the lock token? |
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task<XElement> | The XML value |
GetXmlValueAsync(CancellationToken)
Gets the XElement for this property
Declaration
public Task<XElement> GetXmlValueAsync(CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task<XElement> | The XElement for this property |
Implements
| Improve this Doc View SourceIsValidAsync(CancellationToken)
Determines whether the underlying value is valid
Declaration
public Task<bool> IsValidAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<Boolean> | true when the underlying is valid |