Show / Hide Table of Contents

Class GetContentLanguageProperty

The implementation of the getcontentlanguage property

Inheritance
Object
SimpleUntypedProperty
SimpleTypedProperty<String>
SimpleConvertingProperty<String>
GenericProperty<String>
GenericStringProperty
GetContentLanguageProperty
Inherited Members
SimpleConvertingProperty<String>.Converter
SimpleConvertingProperty<String>.GetXmlValueAsync(CancellationToken)
SimpleConvertingProperty<String>.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.Dead
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GetContentLanguageProperty : GenericStringProperty, ITypedWriteableProperty<string>, ITypedReadableProperty<string>, IUntypedWriteableProperty, IDeadProperty, IUntypedReadableProperty, IInitializableProperty, IProperty

Constructors

| Improve this Doc View Source

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

PropertyName

The XML name of the property

Declaration
public static readonly XName PropertyName
Field Value
Type Description
XName

Methods

| Improve this Doc View Source

GetValueAsync(CancellationToken)

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

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
IInitializableProperty.Init(XElement)
| Improve this Doc View Source

IsDefaultValue(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
IDeadProperty.IsDefaultValue(XElement)
| Improve this Doc View Source

SetValueAsync(String, CancellationToken)

Declaration
public override Task SetValueAsync(string value, CancellationToken ct)
Parameters
Type Name Description
String value
CancellationToken ct
Returns
Type Description
Task
Overrides
FubarDev.WebDavServer.Props.Generic.GenericProperty<System.String>.SetValueAsync(System.String, System.Threading.CancellationToken)
| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX