Share via


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)