共用方式為


Login.AsymmetricKey 屬性

Gets the asymmetric key associated with the login.

此 API 不符合 CLS 標準。 

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

語法

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

value = instance.AsymmetricKey

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

屬性值

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

實作

ILoginOptions.AsymmetricKey

範例

管理使用者、角色和登入

請參閱

參考

Login 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

主體 (Database Engine)

CREATE LOGIN (Transact-SQL)