Class SimpleTypedProperty<T>
A simple typed writeable property
Inherited Members
Namespace:FubarDev.WebDavServer.Props
Assembly:FubarDev.WebDavServer.dll
Syntax
public abstract class SimpleTypedProperty<T> : SimpleUntypedProperty, ITypedWriteableProperty<T>, ITypedReadableProperty<T>, IUntypedWriteableProperty, IUntypedReadableProperty, IProperty
Type Parameters
Name | Description |
---|---|
T | The type to be converted from or to |
Constructors
| Improve this Doc View SourceSimpleTypedProperty(XName, String, Int32, XName[])
Initializes a new instance of the SimpleTypedProperty<T> class.
Declaration
protected SimpleTypedProperty([NotNull] XName name, [CanBeNull] string language, int cost, params XName[] alternativeNames)
Parameters
Type | Name | Description |
---|---|---|
XName | name | The property name |
String | language | The language for the property value |
Int32 | cost | The cost to get the properties value |
XName[] | alternativeNames | The alternative names |
Methods
| Improve this Doc View SourceGetValueAsync(CancellationToken)
Declaration
public abstract Task<T> GetValueAsync(CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task<T> |
Implements
| Improve this Doc View SourceSetValueAsync(T, CancellationToken)
Declaration
public abstract Task SetValueAsync(T value, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
T | value | |
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task |