ServerEvent Implicit 轉換 (ServerEvent to ServerEventSet)
Creates a server event set by performing an implicit operation on a ServerEvent object.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Widening Operator CType ( _
eventValue As ServerEvent _
) As ServerEventSet
'用途
Dim input As ServerEvent
Dim output As ServerEventSet
output = CType(input, ServerEventSet)
public static implicit operator ServerEventSet (
ServerEvent eventValue
)
static implicit operator ServerEventSet^ (
ServerEvent^ eventValue
)
JScript 支援自訂轉換的使用,但不支援新轉換的宣告。
參數
- eventValue
型別:Microsoft.SqlServer.Management.Smo.ServerEvent
A ServerEvent object that specifies the server event.
傳回值
型別:Microsoft.SqlServer.Management.Smo.ServerEventSet
A ServerEventSet object value that specifies a set of server events.