Compartir a través de


Login.Credential Propiedad

Gets the credential associated with the login.

Esta API no es compatible con CLS. 

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

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

Valor de la propiedad

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

Implementa

ILoginOptions.Credential

Ejemplos

Administrar usuarios, roles e inicios de sesión

Vea también

Referencia

Login Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Entidades de seguridad (motor de base de datos)

CREATE LOGIN (Transact-SQL)