RequiresRoleAttribute Constructor (String)
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Initializes a new instance of the RequiresRoleAttribute class that has the specified role.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub New ( _
role As String _
)
'Usage
Dim role As String
Dim instance As New RequiresRoleAttribute(role)
public RequiresRoleAttribute(
string role
)
public:
RequiresRoleAttribute(
String^ role
)
new :
role:string -> RequiresRoleAttribute
public function RequiresRoleAttribute(
role : String
)
Parameters
- role
Type: System.String
The role to which the current user must belong before the domain operation may be invoked.