共用方式為


Implicit 轉換 (ViewEvent to ViewEventSet)

Casts a single view event as a view event set.

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

語法

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

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