Click or drag to resize

IVersionAsyncVersionName Property

IT Hit WebDAV Classes Reference
Name of the version.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax
string VersionName { get; }

Property Value

Type: String
String representing version name.
Remarks
This property contains a server-defined string that is different for each version. This string is intended for display for a user.
Examples
The following example demonstrates how to list file versions.
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");

IFileAsync file = await session.OpenFileAsync(new Uri("http://server/directory/file.docx"));
IVersionAsync[] versions = await file.GetVersionsAsync();
foreach (IVersionAsync version in versions)
{
    MessageBox.Show(version.VersionName);
}
See Also