DatabaseMapping.UserName DatabaseMapping.UserName DatabaseMapping.UserName Property

Definition

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

public:
 property System::String ^ UserName { System::String ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public string UserName { get; }
Public ReadOnly Property UserName As String
Property Value

A String value that specifies the database user.

Examples

Managing Users, Roles, and Logins

Applies to