共用方式為


Implicit 轉換 (TableEvent to TableEventSet)

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared Widening Operator CType ( _
    eventValue As TableEvent _
) As TableEventSet
'用途
Dim input As TableEvent
Dim output As TableEventSet

output = CType(input, TableEventSet)
public static implicit operator TableEventSet (
    TableEvent eventValue
)
static implicit operator TableEventSet^ (
    TableEvent^ eventValue
)
JScript 支援自訂轉換的使用,但不支援新轉換的宣告。