Freigeben über


Login.Credential-Eigenschaft

Gets the credential associated with the login.

Diese API ist nicht mit CLS kompatibel. 

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone, "string.empty")> _
<SfcReferenceAttribute(GetType(Credential), "Server[@Name = '{0}']/Credential[@Name = '{1}']",  _
    )> _
Public Property Credential As String 
    Get 
    Set
'Usage
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)

Eigenschaftswert

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

Implementiert

ILoginOptions.Credential

Beispiele

Verwalten von Benutzern, Rollen und Anmeldungen

Siehe auch

Verweis

Login Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Prinzipale (Datenbankmodul)

CREATE LOGIN (Transact-SQL)