UserBase.Name 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 user name.

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

Syntax

'Declaration
<KeyAttribute> _
<ProfileUsageAttribute(IsExcluded := True)> _
Public Property Name As String
    Get
    Set
'Usage
Dim instance As UserBase
Dim value As String

value = instance.Name

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

Property Value

Type: System.String
The user name. The default is nulla null reference (Nothing in Visual Basic).

Implements

IUser.Name
IIdentity.Name

Remarks

This property must be set to a value other than nulla null reference (Nothing in Visual Basic) before it is serialized.

See Also

Reference

UserBase Class

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace