QStreamable.ClipEventDuration<TSource, TClip, TKey> 方法 (IQStreamable<TSource>, IQStreamable<TClip>, Expression<Func<TSource, TKey>>, Expression<Func<TClip, TKey>>)
將 [來源] 中事件的結束時間裁剪到具有相等索引鍵值的 [裁剪] 中下一個對應事件的開始時間。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function ClipEventDuration(Of TSource, TClip, TKey) ( _
source As IQStreamable(Of TSource), _
clip As IQStreamable(Of TClip), _
sourceKeySelector As Expression(Of Func(Of TSource, TKey)), _
clipKeySelector As Expression(Of Func(Of TClip, TKey)) _
) As IQStreamable(Of TSource)
'用途
Dim source As IQStreamable(Of TSource)
Dim clip As IQStreamable(Of TClip)
Dim sourceKeySelector As Expression(Of Func(Of TSource, TKey))
Dim clipKeySelector As Expression(Of Func(Of TClip, TKey))
Dim returnValue As IQStreamable(Of TSource)
returnValue = source.ClipEventDuration(clip, _
sourceKeySelector, clipKeySelector)
public static IQStreamable<TSource> ClipEventDuration<TSource, TClip, TKey>(
this IQStreamable<TSource> source,
IQStreamable<TClip> clip,
Expression<Func<TSource, TKey>> sourceKeySelector,
Expression<Func<TClip, TKey>> clipKeySelector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TClip, typename TKey>
static IQStreamable<TSource>^ ClipEventDuration(
IQStreamable<TSource>^ source,
IQStreamable<TClip>^ clip,
Expression<Func<TSource, TKey>^>^ sourceKeySelector,
Expression<Func<TClip, TKey>^>^ clipKeySelector
)
static member ClipEventDuration :
source:IQStreamable<'TSource> *
clip:IQStreamable<'TClip> *
sourceKeySelector:Expression<Func<'TSource, 'TKey>> *
clipKeySelector:Expression<Func<'TClip, 'TKey>> -> IQStreamable<'TSource>
JScript 不支援泛型型別及方法。
型別參數
- TSource
來源資料流裝載類型。
- TClip
裁剪資料流裝載類型。
- TKey
索引鍵類型。
參數
- source
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TSource>
來源資料流。
- clip
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TClip>
裁剪資料流。
- sourceKeySelector
型別:System.Linq.Expressions.Expression<Func<TSource, TKey>>
來源資料流的索引鍵選取器。
- clipKeySelector
型別:System.Linq.Expressions.Expression<Func<TClip, TKey>>
裁剪資料流的索引鍵選取器。
傳回值
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TSource>
改變的資料流。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IQStreamable<TSource> 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.111) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.111)。