Microsoft.Activities.Extensions |
ActivityStateRecordExtensions..::..GetArgument<(Of <(<'T>)>)> Method |
ActivityStateRecordExtensions Class See Also Send Feedback |
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 argumentUsage 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
Exception | Condition |
---|---|
System..::..ArgumentNullException | The record is null |