Click or drag to resize
weroSoft AG, Software
TriggerExtensionsTryGetParameterT Method (TriggerProcessingInfo, T)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Gets the first parameter object of the data property of the processing information.

Namespace:  WeroSoft.ComponentModel.Triggering
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
public static bool TryGetParameter<T>(
	this TriggerProcessingInfo processingInfo,
	out T data


Type: WeroSoft.ComponentModel.TriggeringTriggerProcessingInfo
The processing information to get the information from.
Type: T
The resulting data object.

Type Parameters

The type of the object expected.

Return Value

Type: Boolean
True if the object was found; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TriggerProcessingInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
AssertArgumentExceptionRaised if the processingInfo is null.
InvalidOperationExceptionRaised if the processing data is not of correct type or if no data is defined.
See Also