User.Login 屬性
Gets the login that is associated with the database user.
此 API 不符合 CLS 標準。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
<SfcReferenceAttribute(GetType(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", _
)> _
<CLSCompliantAttribute(False)> _
Public Property Login As String
Get
Set
'用途
Dim instance As User
Dim value As String
value = instance.Login
instance.Login = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
[SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",
)]
[CLSCompliantAttribute(false)]
public string Login { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
[SfcReferenceAttribute(typeof(Login), L"Server[@Name = '{0}']/Login[@Name = '{1}']",
)]
[CLSCompliantAttribute(false)]
public:
virtual property String^ Login {
String^ get () sealed;
void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",
)>]
[<CLSCompliantAttribute(false)>]
abstract Login : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",
)>]
[<CLSCompliantAttribute(false)>]
override Login : string with get, set
final function get Login () : String
final function set Login (value : String)
屬性值
型別:System.String
A String value that specifies the login associated with the database user.
實作
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間