Show / Hide Table of Contents

Class GenericProperty<T>

A generic typed property

Inheritance
Object
SimpleUntypedProperty
SimpleTypedProperty<T>
SimpleConvertingProperty<T>
GenericProperty<T>
GenericDateTimeRfc1123Property
GenericStringProperty
Inherited Members
SimpleConvertingProperty<T>.Converter
SimpleConvertingProperty<T>.GetXmlValueAsync(CancellationToken)
SimpleConvertingProperty<T>.SetXmlValueAsync(XElement, CancellationToken)
SimpleUntypedProperty.Name
SimpleUntypedProperty.Language
SimpleUntypedProperty.AlternativeNames
SimpleUntypedProperty.Cost
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Props.Generic
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GenericProperty<T> : SimpleConvertingProperty<T>, ITypedWriteableProperty<T>, ITypedReadableProperty<T>, IUntypedWriteableProperty, IUntypedReadableProperty, IProperty
Type Parameters
Name Description
T

The underlying property value type

Constructors

| Improve this Doc View Source

GenericProperty(XName, String, Int32, IPropertyConverter<T>, GetPropertyValueAsyncDelegate<T>, SetPropertyValueAsyncDelegate<T>, XName[])

Initializes a new instance of the GenericProperty<T> class.

Declaration
public GenericProperty([NotNull] XName name, [CanBeNull] string language, int cost, [NotNull] IPropertyConverter<T> converter, GetPropertyValueAsyncDelegate<T> getValueAsyncFunc, SetPropertyValueAsyncDelegate<T> setValueAsyncFunc, 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 query the properties value

IPropertyConverter<T> converter

The converter to convert to/from the underlying property value

GetPropertyValueAsyncDelegate<T> getValueAsyncFunc

The function to get the property value

SetPropertyValueAsyncDelegate<T> setValueAsyncFunc

The function to set the property value

XName[] alternativeNames

Alternative property names

Methods

| Improve this Doc View Source

GetValueAsync(CancellationToken)

Declaration
public override Task<T> GetValueAsync(CancellationToken ct)
Parameters
Type Name Description
CancellationToken ct
Returns
Type Description
Task<T>
Overrides
FubarDev.WebDavServer.Props.SimpleTypedProperty<T>.GetValueAsync(System.Threading.CancellationToken)
| Improve this Doc View Source

SetValueAsync(T, CancellationToken)

Declaration
public override Task SetValueAsync(T value, CancellationToken ct)
Parameters
Type Name Description
T value
CancellationToken ct
Returns
Type Description
Task
Overrides
FubarDev.WebDavServer.Props.SimpleTypedProperty<T>.SetValueAsync(T, System.Threading.CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX