IDeclareEventProperties.DeclareEventProperties Method
Declares additional properties of the result event type.
Namespace: Microsoft.ComplexEventProcessing.Extensibility
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
CepEventType DeclareEventProperties(
CepEventType outputEventType
)
Parameters
- outputEventType
Type: Microsoft.ComplexEventProcessing.CepEventType
CEP representation of the event type that is output from the user defined module.
Return Value
Type: Microsoft.ComplexEventProcessing.CepEventType
A decorated outputEventType that contains additional event fields information.
Remarks
The culture annotation of the outputEventType will be applied for each output of the user-defined operator or aggregate, before the result is introduced back into the stream.
Examples
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;
}