Compartir a través de


User.SamAccountName Property

Gets or sets the logon name used to support clients and servers running on older versions of the operating system.

Namespace:  Microsoft.Exchange.Data.Directory.Management
Assembly:  Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)

Syntax

'Declaration
<ParameterAttribute(Mandatory := False)> _
Public Property SamAccountName As String
    Get
    Set
'Usage
Dim instance As User
Dim value As String

value = instance.SamAccountName

instance.SamAccountName = value
[ParameterAttribute(Mandatory = false)]
public string SamAccountName { get; set; }

Property Value

Type: System.String
The logon name used to support clients and servers running on older versions of the operating system.

Remarks

This property must contain fewer than 20 characters.