Add 메서드 (ServerEventSet, ServerEvent)
Returns a server event set after adding a new server event to the specified event set.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Shared Function Add ( _
eventSet As ServerEventSet, _
anEvent As ServerEvent _
) As ServerEventSet
‘사용 방법
Dim eventSet As ServerEventSet
Dim anEvent As ServerEvent
Dim returnValue As ServerEventSet
returnValue = ServerEventSet.Add(eventSet, _
anEvent)
public static ServerEventSet Add(
ServerEventSet eventSet,
ServerEvent anEvent
)
public:
static ServerEventSet^ Add(
ServerEventSet^ eventSet,
ServerEvent^ anEvent
)
static member Add :
eventSet:ServerEventSet *
anEvent:ServerEvent -> ServerEventSet
public static function Add(
eventSet : ServerEventSet,
anEvent : ServerEvent
) : ServerEventSet
매개 변수
- eventSet
유형: Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object that specifies the event set to which the new event is added.
- anEvent
유형: Microsoft.SqlServer.Management.Smo. . :: . .ServerEvent
A ServerEvent object that specifies the event to be added to the event set.
반환 값
유형: Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that contains the new ServerEvent object class.