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
Assemblies:   ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax
[SerializableAttribute]
public sealed class PropertyName

The PropertyName type exposes the following members.

Constructors
  NameDescription
Public methodPropertyName
Initializes new instance of PropertyName.
Top
Methods
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 = session.OpenFile(new Uri("https://server/Library/doc.txt"));

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