MarkLogic XCC/.Net Library |

# ContentPermission Constructor

Instantiate a new permission object with the given capability and role.

[Visual Basic]
Overloads Public Sub New( _
ByVal capability As Capability, _
ByVal role As String _
)
[C#]
public ContentPermission(
Capability capability,
string role
);

#### Parameters

capability
  One of the capabilities defined in the enumeration class ContentCapability
role
  A Role name.

#### See Also

ContentPermission Class | Marklogic.Xcc Namespace