Click or drag to resize

PropertyName Class

IT Hit WebDAV Classes Reference
WebDAV property name.
Inheritance Hierarchy
SystemObject
  ITHit.WebDAV.ClientPropertyName

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
[SerializableAttribute]
public sealed class PropertyName

The PropertyName type exposes the following members.

Constructors
  NameDescription
Public methodPropertyName
Initializes new instance of PropertyName.
Top
Methods
  NameDescription
Public methodEquals
Checks whether objects are equal.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns has code.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns string representation of current property name.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
The equality operator (==).
Public operatorStatic memberInequality
The inequality operator (!=).
Top
Fields
  NameDescription
Public fieldName
Name of the property.
Public fieldNamespaceUri
Namespace of the property.
Top
Remarks
Represents WebDAV item custom property name.
Examples
string license = "<?xml version='1.0' encoding='utf...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFile file = await session.GetFileAsync(new Uri("https://server/Library/doc.txt"));

Property[] properties = await file.GetAllPropertiesAsync();
foreach(Property prop in properties)
{
   Console.WriteLine(prop.Name.NamespaceUri + ":" + prop.Name.Name + " " + prop.StringValue);
}
See Also