![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The Role class represents a collection of permissions which can be assigned to a user. More...
#include <Role.h>
Public Member Functions | |
Role (VxSdk::IVxRole *vxRole) | |
Constructor. More... | |
virtual | ~Role () |
Destructor. More... | |
!Role () | |
Finaliser. More... | |
CPPCli::Results::Value | AddPrivilege (CPPCli::NewPrivilege^ newPrivilege) |
Add a new privilege to the role. More... | |
Results::Value | Refresh () |
Update this instances properties. More... | |
CPPCli::Results::Value | RemovePrivilege (CPPCli::Privilege^ privilegeItem) |
Remove a privilege from the role. More... | |
Package Functions | |
System::Collections::Generic::List< Privilege^ >^ | _GetPrivileges () |
System::Collections::Generic::List< User^ >^ | _GetUsers () |
Package Attributes | |
VxSdk::IVxRole * | _role |
Properties | |
System::String^ | Id [get] |
Gets the unique identifier for this role. More... | |
bool | IsReadOnly [get] |
Indicates that the role was created internally on the server and is read-only. More... | |
System::String^ | Name [get, set] |
Gets or sets the friendly name. More... | |
System::Collections::Generic::List< Privilege^ >^ | Privileges [get] |
Gets the privileges assigned to this role. More... | |
System::Collections::Generic::List< User^ >^ | Users [get] |
Gets the users assigned to this role. More... | |
The Role class represents a collection of permissions which can be assigned to a user.
CPPCli::Role::Role | ( | VxSdk::IVxRole * | vxRole | ) |
Constructor.
vxRole | The vx role. |
CPPCli::Role::!Role | ( | ) |
|
package |
Definition at line 40 of file Role.cpp.
|
package |
CPPCli::Results::Value CPPCli::Role::AddPrivilege | ( | CPPCli::NewPrivilege^ | newPrivilege | ) |
Add a new privilege to the role.
newPrivilege | The new privilege to add. |
Definition at line 19 of file Role.cpp.
CPPCli::Results::Value CPPCli::Role::Refresh | ( | ) |
Update this instances properties.
Definition at line 26 of file Role.cpp.
CPPCli::Results::Value CPPCli::Role::RemovePrivilege | ( | CPPCli::Privilege^ | privilegeItem | ) |
Remove a privilege from the role.
privilegeItem | The privilege to remove. |
Definition at line 30 of file Role.cpp.
|
package |
|
get |
|
get |
|
getset |
|
get |
|
get |