Поделиться через


Свойство UserName

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<SfcPropertyAttribute> _
Public ReadOnly Property UserName As String
    Get
'Применение
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

Значение свойства

Тип: System. . :: . .String
A String value that specifies the database user.