Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the name of the login that is mapped to the user 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 LoginName As String
Get
'Usage
Dim instance As DatabaseMapping
Dim value As String
value = instance.LoginName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string LoginName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ LoginName {
String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member LoginName : string
function get LoginName () : String
Property Value
Type: System.String
A String value that specifies the login.
Examples
Managing Users, Roles, and Logins
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace