Show / Hide Table of Contents

Class ContentLengthProperty

The getcontentlength property

Inheritance
Object
ContentLengthProperty
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.Live
Assembly:FubarDev.WebDavServer.dll
Syntax
public class ContentLengthProperty : ITypedReadableProperty<long>, ILiveProperty, IUntypedReadableProperty, IProperty

Constructors

| Improve this Doc View Source

ContentLengthProperty(Int64)

Initializes a new instance of the ContentLengthProperty class.

Declaration
public ContentLengthProperty(long propValue)
Parameters
Type Name Description
Int64 propValue

The initial value

Fields

| Improve this Doc View Source

PropertyName

The XML property name

Declaration
public static readonly XName PropertyName
Field Value
Type Description
XName

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; }
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

GetValueAsync(CancellationToken)

Declaration
public Task<long> GetValueAsync(CancellationToken ct)
Parameters
Type Name Description
CancellationToken ct
Returns
Type Description
Task<Int64>
Implements
ITypedReadableProperty<T>.GetValueAsync(CancellationToken)
| Improve this Doc View Source

GetXmlValueAsync(CancellationToken)

Gets the XElement for this property

Declaration
public 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

IsValidAsync(CancellationToken)

Determines whether the underlying value is valid

Declaration
public Task<bool> IsValidAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<Boolean>

true when the underlying is valid

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