User.AsymmetricKey 属性

Gets or sets the asymmetric key for the user.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

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

value = instance.AsymmetricKey

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

属性值

类型:System.String
A String object value that specifies the asymmetric key for the user.

实现

IUserOptions.AsymmetricKey

示例

管理用户、角色和登录名

请参阅

参考

User 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

主体(数据库引擎)

CREATE USER (Transact-SQL)