共用方式為


User.Events 屬性

Gets the events that are associated with the database user.

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

語法

'宣告
Public ReadOnly Property Events As UserEvents 
    Get
'用途
Dim instance As User 
Dim value As UserEvents 

value = instance.Events
public UserEvents Events { get; }
public:
property UserEvents^ Events {
    UserEvents^ get ();
}
member Events : UserEvents
function get Events () : UserEvents

屬性值

型別:Microsoft.SqlServer.Management.Smo.UserEvents
A UserEvents object that represents the database user events.

範例

管理使用者、角色和登入

請參閱

參考

User 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

主體 (Database Engine)

CREATE USER (Transact-SQL)