Właściwość UIConnectionInfo.UserName
Ten interfejs API obsługuje infrastrukturę programu i nie jest przeznaczony do użycia bezpośrednio w kodzie.
Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.Pobiera lub ustawia String wartość, która określa nazwę logowania dla połączenia.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.RegSvrEnum
Zestaw: Microsoft.SqlServer.RegSvrEnum (w Microsoft.SqlServer.RegSvrEnum.dll)
Składnia
'Deklaracja
Public Overridable Property UserName As String
Get
Set
'Użycie
Dim instance As UIConnectionInfo
Dim value As String
value = instance.UserName
instance.UserName = value
public virtual string UserName { get; set; }
public:
virtual property String^ UserName {
String^ get ();
void set (String^ value);
}
abstract UserName : string with get, set
override UserName : string with get, set
function get UserName () : String
function set UserName (value : String)
Wartość właściwości
Typ: System.String
A String wartość, która określa nazwę logowania dla połączenia.
Zobacz także