Share via


ServerEvent.CreateEventSession Property

Gets a server event that can be included in the event set.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared ReadOnly Property CreateEventSession As ServerEvent 
    Get
'Usage
Dim value As ServerEvent 

value = ServerEvent.CreateEventSession
public static ServerEvent CreateEventSession { get; }
public:
static property ServerEvent^ CreateEventSession {
    ServerEvent^ get ();
}
static member CreateEventSession : ServerEvent
static function get CreateEventSession () : ServerEvent

Property Value

Type: Microsoft.SqlServer.Management.Smo.ServerEvent
A ServerEvent object that represents the CreateEventSession event that can be included in the server event set.

Examples

Handling SMO Events

See Also

Reference

ServerEvent Class

Microsoft.SqlServer.Management.Smo Namespace