Login.Credential 属性

Gets the credential associated with the login.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "string.empty")> _
<SfcReferenceAttribute(GetType(Credential), "Server[@Name = '{0}']/Credential[@Name = '{1}']",  _
    )> _
Public Property Credential As String 
    Get 
    Set
用法
Dim instance As Login 
Dim value As String 

value = instance.Credential

instance.Credential = value
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone, "string.empty")]
[SfcReferenceAttribute(typeof(Credential), "Server[@Name = '{0}']/Credential[@Name = '{1}']", 
    )]
public string Credential { get; set; }
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone, L"string.empty")]
[SfcReferenceAttribute(typeof(Credential), L"Server[@Name = '{0}']/Credential[@Name = '{1}']", 
    )]
public:
virtual property String^ Credential {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "string.empty")>]
[<SfcReferenceAttribute(typeof(Credential), "Server[@Name = '{0}']/Credential[@Name = '{1}']", 
    )>]
abstract Credential : string with get, set
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "string.empty")>]
[<SfcReferenceAttribute(typeof(Credential), "Server[@Name = '{0}']/Credential[@Name = '{1}']", 
    )>]
override Credential : string with get, set
final function get Credential () : String 
final function set Credential (value : String)

属性值

类型:System.String
A String value that specifies the credential associated with the login.

实现

ILoginOptions.Credential

示例

管理用户、角色和登录名

请参阅

参考

Login 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

主体(数据库引擎)

CREATE LOGIN (Transact-SQL)