WebDAVPrivilege


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.26" ) ]
public WebDAVPrivilege (string? ns_uri, string? name, string? description, WebDAVPrivilegeKind kind, WebDAVPrivilegeHint hint)

Describes one privilege entry.

The hint can be UNKNOWN for privileges which are not known to the WebDAVSession. It's possible, because the servers can define their own privileges. The hint is also tried to pair with known hints when it's UNKNOWN.

The ns_uri and name can be null only if the hint is one of the known privileges. Otherwise it's an error to pass either of the two as null.

Parameters:

ns_uri

a namespace URI

name

element name

description

human read-able description, or null

kind

an WebDAVPrivilegeKind

hint

an WebDAVPrivilegeHint

Returns:

A newly created WebDAVPrivilege, prefilled with given values. Free it with webdav_privilege_free, when no longer needed.