Class SimpleUntypedProperty
A simple writeable untyped property
Inherited Members
Namespace:FubarDev.WebDavServer.Props
Assembly:FubarDev.WebDavServer.dll
Syntax
public abstract class SimpleUntypedProperty : IUntypedWriteableProperty, IUntypedReadableProperty, IProperty
Constructors
| Improve this Doc View SourceSimpleUntypedProperty(XName, String, Int32, XName[])
Initializes a new instance of the SimpleUntypedProperty class.
Declaration
protected SimpleUntypedProperty([NotNull] XName name, [CanBeNull] string language, int cost, [NotNull, ItemNotNull] 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 |
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; protected set; }
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(CancellationToken)
Gets the XElement for this property
Declaration
public abstract 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 SourceSetXmlValueAsync(XElement, CancellationToken)
Sets the XElement for the property
Declaration
public abstract Task SetXmlValueAsync(XElement element, CancellationToken ct)
Parameters
| Type | Name | Description |
|---|---|---|
| XElement | element | The XElement to be set |
| CancellationToken | ct | The cancellation token |
Returns
| Type | Description |
|---|---|
| Task | The async task |