IUser.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 for the user.

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


Property Roles As IEnumerable(Of String)
Dim instance As IUser
Dim value As IEnumerable(Of String)

value = instance.Roles

instance.Roles = value
IEnumerable<string> Roles { get; set; }
property IEnumerable<String^>^ Roles {
    IEnumerable<String^>^ get ();
    void set (IEnumerable<String^>^ value);
abstract Roles : IEnumerable<string> with get, set
function get Roles () : IEnumerable<String>
function set Roles (value : IEnumerable<String>)

Property Value

Type: System.Collections.Generic.IEnumerable<String>
The roles of the user.


The roles the user is a member of can be nulla null reference (Nothing in Visual Basic).

See Also


IUser Interface

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace