共用方式為


User.Certificate 屬性

Gets or sets the certificate for the user.

此 API 不符合 CLS 標準。 

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

語法

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

value = instance.Certificate

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

屬性值

型別:System.String
A String object value that specifies the certificate for the user.

實作

IUserOptions.Certificate

範例

管理使用者、角色和登入

請參閱

參考

User 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

主體 (Database Engine)

CREATE USER (Transact-SQL)