Share via


Propriété UserName

Gets the database user that is mapped to the login in the database.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute> _
Public ReadOnly Property UserName As String
    Get
'Utilisation
Dim instance As DatabaseMapping
Dim value As String

value = instance.UserName
[SfcPropertyAttribute]
public string UserName { get; }
[SfcPropertyAttribute]
public:
property String^ UserName {
    String^ get ();
}
[<SfcPropertyAttribute>]
member UserName : string
function get UserName () : String

Valeur de propriété

Type : System. . :: . .String
A String value that specifies the database user.