Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets the database user that is mapped to the login in the database.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property UserName As String
Get
'Usage
Dim instance As DatabaseMapping
Dim value As String
value = instance.UserName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string UserName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ UserName {
String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member UserName : string
function get UserName () : String
Eigenschaftswert
Typ: System.String
A String value that specifies the database user.
Beispiele
Verwalten von Benutzern, Rollen und Anmeldungen
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo-Namespace