Partager via


Propriété Credential

Gets or sets the credential that is associated with the login.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayNameKeyAttribute("Login_CredentialName")> _
<DisplayDescriptionKeyAttribute("Login_CredentialDesc")> _
Property Credential As String
    Get
    Set
'Utilisation
Dim instance As ILoginOptions
Dim value As String

value = instance.Credential

instance.Credential = value
[DisplayNameKeyAttribute("Login_CredentialName")]
[DisplayDescriptionKeyAttribute("Login_CredentialDesc")]
string Credential { get; set; }
[DisplayNameKeyAttribute(L"Login_CredentialName")]
[DisplayDescriptionKeyAttribute(L"Login_CredentialDesc")]
property String^ Credential {
    String^ get ();
    void set (String^ value);
}
[<DisplayNameKeyAttribute("Login_CredentialName")>]
[<DisplayDescriptionKeyAttribute("Login_CredentialDesc")>]
abstract Credential : string with get, set
function get Credential () : String
function set Credential (value : String)

Valeur de propriété

Type : System. . :: . .String
A String value that contains the credential that is associated with the login.