Share via


ServerEventSet.NumberOfElements Property

Gets the number of events in the event set.

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

Syntax

'Declaration
Public Overrides ReadOnly Property NumberOfElements As Integer 
    Get
'Usage
Dim instance As ServerEventSet 
Dim value As Integer 

value = instance.NumberOfElements
public override int NumberOfElements { get; }
public:
virtual property int NumberOfElements {
    int get () override;
}
abstract NumberOfElements : int 
override NumberOfElements : int
override function get NumberOfElements () : int

Property Value

Type: System.Int32
A Int32 value that specifies the number of events in the Server event set.

Examples

Handling SMO Events

See Also

Reference

ServerEventSet Class

Microsoft.SqlServer.Management.Smo Namespace