ApplicationRoleEvents 类
The ApplicationRoleEvents object represents the settings required for Microsoft SQL Server application role event notification.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Smo..::..ApplicationRoleEvents
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Class ApplicationRoleEvents
用法
Dim instance As ApplicationRoleEvents
public class ApplicationRoleEvents
public ref class ApplicationRoleEvents
type ApplicationRoleEvents = class end
public class ApplicationRoleEvents
ApplicationRoleEvents 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetEventSelection | Returns a set of currently subscribed event notifications. | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
StartEvents | Starts receiving events. | |
StopEvents | Stops receiving events. | |
SubscribeToEvents(ObjectEventSet) | Specifies the object events to receive. | |
SubscribeToEvents(ObjectEventSet, ServerEventHandler) | Specifies the object events to receive. | |
ToString | (从 Object 继承。) | |
UnsubscribeAllEvents | Clears all event settings, and removes all event handlers. | |
UnsubscribeFromEvents | Clears the specified event setting, and removes all event handlers. |
页首
事件
名称 | 说明 | |
---|---|---|
ServerEvent | Specifies the event raised when an event occurs in ApplicationRole object and the user subscribed to the events from that object instance. |
页首
注释
The ApplicationRoleEvents class is accessed through Events property and cannot be created as a stand-alone object.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。