GetArgument(T) Method

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Gets an argument

Namespace: Microsoft.Activities.Extensions.Tracking
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)

Syntax

C#
public static T GetArgument<T>(
	this ActivityStateRecord record,
	string name
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetArgument(Of T) ( _
	record As ActivityStateRecord, _
	name As String _
) As T
Visual C++
public:
[ExtensionAttribute]
generic<typename T>
static T GetArgument(
	ActivityStateRecord^ record, 
	String^ name
)

Parameters

record
Type: System.Activities.Tracking..::..ActivityStateRecord
The record.
name
Type: System..::..String
The argument name.

Type Parameters

T
The type of the argument

Return Value

The argument

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActivityStateRecord. 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).

Exceptions

ExceptionCondition
System..::..ArgumentNullException The record is null

See Also