UserBase.Roles Property

[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.]

Gets or sets the roles the user is a member of.

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

Syntax

'Declaration
<EditableAttribute(False)> _
<ProfileUsageAttribute(IsExcluded := True)> _
Public Property Roles As IEnumerable(Of String)
    Get
    Set
'Usage
Dim instance As UserBase
Dim value As IEnumerable(Of String)

value = instance.Roles

instance.Roles = value
[EditableAttribute(false)]
[ProfileUsageAttribute(IsExcluded = true)]
public IEnumerable<string> Roles { get; set; }
[EditableAttribute(false)]
[ProfileUsageAttribute(IsExcluded = true)]
public:
virtual property IEnumerable<String^>^ Roles {
    IEnumerable<String^>^ get () sealed;
    void set (IEnumerable<String^>^ value) sealed;
}
[<EditableAttribute(false)>]
[<ProfileUsageAttribute(IsExcluded = true)>]
abstract Roles : IEnumerable<string> with get, set
[<EditableAttribute(false)>]
[<ProfileUsageAttribute(IsExcluded = true)>]
override Roles : IEnumerable<string> with get, set
final function get Roles () : IEnumerable<String>
final function set Roles (value : IEnumerable<String>)

Property Value

Type: System.Collections.Generic.IEnumerable<String>
The roles the user is a member of. The default is nulla null reference (Nothing in Visual Basic).

Implements

IUser.Roles

See Also

Reference

UserBase Class

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace