共用方式為


Login.Certificate 屬性

Gets the certificate associated with the login.

此 API 不符合 CLS 標準。 

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

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

value = instance.Certificate

instance.Certificate = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone, 
    "string.empty")]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(Certificate), "Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']", 
    )]
public string Certificate { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone, 
    L"string.empty")]
[CLSCompliantAttribute(false)]
[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;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone, 
    "string.empty")>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(Certificate), "Server[@Name = '{0}']/Database[@Name = 'master']/Certificate[@Name = '{1}']", 
    )>]
abstract Certificate : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone, 
    "string.empty")>]
[<CLSCompliantAttribute(false)>]
[<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)

屬性值

型別:System.String
A String value that specifies the certificate associated with the login.

實作

ILoginOptions.Certificate

範例

管理使用者、角色和登入

請參閱

參考

Login 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

主體 (Database Engine)

CREATE LOGIN (Transact-SQL)