Class GetETagProperty
The implementation of the getetag
property
Inherited Members
Namespace:FubarDev.WebDavServer.Props.Dead
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GetETagProperty : ITypedReadableProperty<EntityTag>, IDeadProperty, IUntypedReadableProperty, IInitializableProperty, IProperty
Constructors
| Improve this Doc View SourceGetETagProperty(IPropertyStore, IEntry, Nullable<Int32>)
Initializes a new instance of the GetETagProperty class.
Declaration
public GetETagProperty([CanBeNull] IPropertyStore propertyStore, IEntry entry, int ? cost = null)
Parameters
Type | Name | Description |
---|---|---|
IPropertyStore | propertyStore | The property store to store this property |
IEntry | entry | The entry to instantiate this property for |
Nullable<Int32> | cost | The cost of querying the display names property |
Fields
| Improve this Doc View SourcePropertyName
The XML name of the property
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 SourceConverter
Gets the entity tag converter
Declaration
public IPropertyConverter<EntityTag> Converter { get; }
Property Value
Type | Description |
---|---|
IPropertyConverter<EntityTag> |
Cost
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 SourceGetValueAsync(CancellationToken)
Declaration
public Task<EntityTag> GetValueAsync(CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task<EntityTag> |
Implements
| Improve this Doc View SourceGetXmlValueAsync(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 SourceInit(XElement)
Initialize the property with an XElement
Declaration
public void Init(XElement initialValue)
Parameters
Type | Name | Description |
---|---|---|
XElement | initialValue | The element to intialize the property with |
Implements
| Improve this Doc View SourceIsDefaultValue(XElement)
Determines if the returned value is the default value and therefore doesn't need to be copied.
Declaration
public bool IsDefaultValue(XElement element)
Parameters
Type | Name | Description |
---|---|---|
XElement | element | The element with the value to check if it has the default value |
Returns
Type | Description |
---|---|
Boolean | true when the underlying is not the default value |