Class GetContentLanguageProperty
The implementation of the getcontentlanguage
property
Inheritance
Inherited Members
Namespace:FubarDev.WebDavServer.Props.Dead
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GetContentLanguageProperty : GenericStringProperty, ITypedWriteableProperty<string>, ITypedReadableProperty<string>, IUntypedWriteableProperty, IDeadProperty, IUntypedReadableProperty, IInitializableProperty, IProperty
Constructors
| Improve this Doc View SourceGetContentLanguageProperty(IEntry, IPropertyStore, String, Nullable<Int32>)
Initializes a new instance of the GetContentLanguageProperty class.
Declaration
public GetContentLanguageProperty([NotNull] IEntry entry, [NotNull] IPropertyStore store, [NotNull] string defaultContentLanguage = "en", int ? cost = null)
Parameters
Type | Name | Description |
---|---|---|
IEntry | entry | The entry to instantiate this property for |
IPropertyStore | store | The property store to store this property |
String | defaultContentLanguage | The content language to return when none was specified |
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 |
Methods
| Improve this Doc View SourceGetValueAsync(CancellationToken)
Declaration
public override Task<string> GetValueAsync(CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task<String> |
Overrides
Init(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 |
Implements
| Improve this Doc View SourceSetValueAsync(String, CancellationToken)
Declaration
public override Task SetValueAsync(string value, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
String | value | |
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task |
Overrides
TryGetValueAsync(CancellationToken)
Tries to get the value of this property
Declaration
public Task<> TryGetValueAsync(CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task<System.> | A tuple where the first item indicates whether the value was read from the property store and the second item is the value to be returned as value for this property |