RequiresRoleAttribute Constructor (array<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 set of roles.

Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Sub New ( _
    ParamArray roles As String() _
)
'Usage
Dim roles As String()

Dim instance As New RequiresRoleAttribute(roles)
public RequiresRoleAttribute(
    params string[] roles
)
public:
RequiresRoleAttribute(
    ... array<String^>^ roles
)
new : 
        roles:string[] -> RequiresRoleAttribute
public function RequiresRoleAttribute(
    ... roles : String[]
)

Parameters

  • roles
    Type: array<System.String[]
    The set of roles permitted to invoke the domain operation.

Remarks

The current user must be in at least one of the roles to invoke the operation.

See Also

Reference

RequiresRoleAttribute Class

RequiresRoleAttribute Overload

System.ServiceModel.DomainServices.Server Namespace