WorkflowHelpers.GetProcessParameterValue<T> Method
Gets the value of the specified process parameter. If the process parameter does not exist the default value is returned.
Namespace: Microsoft.TeamFoundation.Build.Workflow
Assembly: Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)
Syntax
'Declaration
Public Shared Function GetProcessParameterValue(Of T) ( _
rootActivity As Activity, _
propertyName As String, _
defaultValue As T _
) As T
public static T GetProcessParameterValue<T>(
Activity rootActivity,
string propertyName,
T defaultValue
)
public:
generic<typename T>
static T GetProcessParameterValue(
Activity^ rootActivity,
String^ propertyName,
T defaultValue
)
static member GetProcessParameterValue :
rootActivity:Activity *
propertyName:string *
defaultValue:'T -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
The expected type of the process parameter.
Parameters
rootActivity
Type: System.Activities.ActivityThe Activity object from which to obtain metadata.
propertyName
Type: System.StringThe name of the property to get the value for.
defaultValue
Type: TThe value to return if the property value cannot be found.
Return Value
Type: T
The value of the process parameter if found or the specified default value if not found.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.