Click or drag to resize
weroSoft AG, Software
TriggerExtensionsTryGetParameterT Method (TriggerProcessingInfo, String, T)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
gets the parameter with the defined name of the data 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,
	string parameterName,
	out T data


Type: WeroSoft.ComponentModel.TriggeringTriggerProcessingInfo
The processing information to get the information from.
Type: SystemString
The name of the parameter to get the data from.
Type: T
The data found with the method.

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).
AssertArgumentException Raised if the processingInfo is null or the parameterName is null or empty.
InvalidOperationException Raised if the processing data is not of correct type or if no data is defined.
See Also