DeclareEventProperties 方法
宣告結果事件類型的其他屬性。
命名空間: Microsoft.ComplexEventProcessing.Extensibility
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
CepEventType DeclareEventProperties(
CepEventType outputEventType
)
參數
- outputEventType
型別:Microsoft.ComplexEventProcessing. . :: . .CepEventType
以 CEP 表示從使用者定義模組輸出的事件類型。
傳回值
型別:Microsoft.ComplexEventProcessing. . :: . .CepEventType
包含其他事件欄位資訊的裝飾 outputEventType。
備註
系統會先針對使用者定義之運算子或彙總的每個輸出套用 outputEventType 的文化特性註解,然後再將結果導回資料流。
範例
public CepEventType DeclareEventProperties(CepEventType outputEventType)
{
// assuming string field 'loc' in type Input
// assuming string fields 'firstName' and 'location' in type Output
outputEventType.Fields["firstName"].CultureInfo = new System.Globalization.CultureInfo("zh-CN");
outputEventType.Fields["location"].CultureInfo = base.InputEventType.Fields["loc"].CultureInfo;
return outputEventType;
}