Share via


MailUser.SamAccountName Property

Gets or sets the logon name used to support clients and servers running on earlier versions of the operating system, such as Microsoft Windows NT 4.0, Windows 98, Windows 95, and LAN Manager.

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 MailUser
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 earlier versions of the operating system.

Remarks

The value of this property must contain fewer than 20 characters.