Class GetContentTypeProperty
The implementation of the getcontenttype
property
Inheritance
GetContentTypeProperty
Inherited Members
Namespace:FubarDev.WebDavServer.Props.Dead
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GetContentTypeProperty : GenericStringProperty, ITypedWriteableProperty<string>, ITypedReadableProperty<string>, IUntypedWriteableProperty, IDeadProperty, IUntypedReadableProperty, IInitializableProperty, IProperty
Constructors
| Improve this Doc View SourceGetContentTypeProperty(IEntry, IPropertyStore, Nullable<Int32>)
Initializes a new instance of the GetContentTypeProperty class.
Declaration
public GetContentTypeProperty([NotNull] IEntry entry, [NotNull] IPropertyStore store, 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 |
Nullable<Int32> | cost | The cost of querying the display names property |
Fields
| Improve this Doc View SourcePropertyName
The XML name of the property
Declaration
public static readonly XName PropertyName
Field Value
Type | Description |
---|---|
XName |
Methods
| Improve this Doc View SourceGetValueAsync(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
| Improve this Doc View SourceIsDefaultValue(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
| Improve this Doc View SourceSetValueAsync(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)