Export (0) Print
Expand All

UserBase Class

WCF RIA Services

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

Serves as the base class for user entities that pass principal values to the client.

System.Object
  System.ServiceModel.DomainServices.Server.ApplicationServices.UserBase

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

public abstract class UserBase : IUser, 
	IPrincipal, IIdentity

The UserBase type exposes the following members.

  NameDescription
Protected methodUserBaseInitializes a new instance of the UserBase class.
Top

  NameDescription
Public propertyIsAuthenticatedGets a value indicating whether the user is authenticated.
Public propertyNameGets or sets the user name.
Public propertyRolesGets or sets the roles the user is a member of.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsInRoleDetermines whether the current user belongs to the specified role.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate propertyIIdentity.AuthenticationTypeGets the authentication type.
Explicit interface implemetationPrivate propertyIPrincipal.IdentityGets the identity.
Top

This class is designed for use with the AuthenticationBase<T>. It provides properties to support serialization of principal values to the domain context generated for any domain service extending AuthenticationBase<T> class. It also presents those values through the IPrincipal and IIdentity interfaces for use in shared authorization scenarios.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft