Udostępnij za pośrednictwem


Właściwość Login.Certificate

Pobiera certyfikat skojarzony z logowania.

Ten interfejs API nie jest zgodny ze specyfikacją CLS. 

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone,  _
    "string.empty")> _
<SfcReferenceAttribute(GetType(Certificate), "Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']",  _
    )> _
Public Property Certificate As String
    Get
    Set
'Użycie
Dim instance As Login
Dim value As String

value = instance.Certificate

instance.Certificate = value
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone, 
    "string.empty")]
[SfcReferenceAttribute(typeof(Certificate), "Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']", 
    )]
public string Certificate { get; set; }
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone, 
    L"string.empty")]
[SfcReferenceAttribute(typeof(Certificate), L"Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']", 
    )]
public:
virtual property String^ Certificate {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone, 
    "string.empty")>]
[<SfcReferenceAttribute(typeof(Certificate), "Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']", 
    )>]
abstract Certificate : string with get, set
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone, 
    "string.empty")>]
[<SfcReferenceAttribute(typeof(Certificate), "Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']", 
    )>]
override Certificate : string with get, set
final function get Certificate () : String
final function set Certificate (value : String)

Wartość właściwości

Typ: System.String
A String wartość, która określa certyfikat skojarzony z logowania.

Implementacje

ILoginOptions.Certificate