Share via


ILoginOptions.Credential Property

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

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

Syntax

'Declaration
<DisplayNameKeyAttribute("Login_CredentialName")> _
<DisplayDescriptionKeyAttribute("Login_CredentialDesc")> _
Property Credential As String
    Get
    Set
'Usage
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)

Property Value

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