共用方式為


Credential.Identity 屬性

Gets or sets the identity associated with the credential.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Identity As String 
    Get 
    Set
'用途
Dim instance As Credential 
Dim value As String 

value = instance.Identity

instance.Identity = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string Identity { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ Identity {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Identity : string with get, set
function get Identity () : String 
function set Identity (value : String)

屬性值

型別:System.String
A String value that specifies the identity associated with the credential.

備註

The identity is usually a Windows account.

範例

設定屬性

請參閱

參考

Credential 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE CREDENTIAL (Transact-SQL)

認證 (Database Engine)