IHierarchyItemGetPropertyNamesAsync Method
IT Hit WebDAV Classes Reference
Gets names of all properties for this item.
Namespace:
ITHit.WebDAV.Server
Assembly:
ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax Task<IEnumerable<PropertyName>> GetPropertyNamesAsync()
Function GetPropertyNamesAsync As Task(Of IEnumerable(Of PropertyName))
Task<IEnumerable<PropertyName>^>^ GetPropertyNamesAsync()
abstract GetPropertyNamesAsync : unit -> Task<IEnumerable<PropertyName>>
Return Value
Type:
TaskIEnumerablePropertyName
Enumerable with available property names.
Remarks Most WebDAV clients never request list of property names, so your implementation can just return
empty enumerable.
Examples The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.
public async Task<IEnumerable<PropertyName>> GetPropertyNamesAsync()
{
IList<PropertyValue> propertyValues = await GetPropertyValuesAsync();
return propertyValues.Select(p => p.QualifiedName);
}
Public Async Function GetPropertyNamesAsync() As Task(Of IEnumerable(Of PropertyName)) Implements IHierarchyItem.GetPropertyNamesAsync
Dim propertyValues As IList(Of PropertyValue) = Await GetPropertyValuesAsync()
Return propertyValues.Select(Function(p) p.QualifiedName)
End Function
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also