共用方式為


Implicit 轉換 (ServerTraceEvent to ServerTraceEventSet)

Converts a single server trace event to a server trace event set.

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

語法

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

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

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。