Implicit 轉換 (DatabaseEvent to DatabaseEventSet)
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Widening Operator CType ( _
eventValue As DatabaseEvent _
) As DatabaseEventSet
'用途
Dim input As DatabaseEvent
Dim output As DatabaseEventSet
output = CType(input, DatabaseEventSet)
public static implicit operator DatabaseEventSet (
DatabaseEvent eventValue
)
static implicit operator DatabaseEventSet^ (
DatabaseEvent^ eventValue
)
JScript 支援自訂轉換的使用,但不支援新轉換的宣告。