Show / Hide Table of Contents

Class SimpleUntypedProperty

A simple writeable untyped property

Inheritance
Object
SimpleUntypedProperty
SimpleTypedProperty<T>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Props
Assembly:FubarDev.WebDavServer.dll
Syntax
public abstract class SimpleUntypedProperty : IUntypedWriteableProperty, IUntypedReadableProperty, IProperty

Constructors

| Improve this Doc View Source

SimpleUntypedProperty(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 Source

AlternativeNames

Gets the alternative XML names

Declaration
public IReadOnlyCollection<XName> AlternativeNames { get; }
Property Value
Type Description
IReadOnlyCollection<XName>
Implements
IProperty.AlternativeNames
| Improve this Doc View Source

Cost

Gets the cost of reading the property value

Declaration
public int Cost { get; }
Property Value
Type Description
Int32
Implements
IUntypedReadableProperty.Cost
| Improve this Doc View Source

Language

Gets the language of this property value

Declaration
public string Language { get; protected set; }
Property Value
Type Description
String
Implements
IProperty.Language
| Improve this Doc View Source

Name

Gets the XML name of the property

Declaration
public XName Name { get; }
Property Value
Type Description
XName
Implements
IProperty.Name

Methods

| Improve this Doc View Source

GetXmlValueAsync(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
IUntypedReadableProperty.GetXmlValueAsync(CancellationToken)
| Improve this Doc View Source

SetXmlValueAsync(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

Implements
IUntypedWriteableProperty.SetXmlValueAsync(XElement, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX