EnvironmentVariableExtension.GetEnvironmentVariable<T> Method (ActivityContext, String)
Namespace: Microsoft.TeamFoundation.Build.Activities.Extensions
Assembly: Microsoft.TeamFoundation.Build.Activities (in Microsoft.TeamFoundation.Build.Activities.dll)
Syntax
'Declaration
Public Function GetEnvironmentVariable(Of T) ( _
context As ActivityContext, _
name As String _
) As T
public T GetEnvironmentVariable<T>(
ActivityContext context,
string name
)
public:
generic<typename T>
virtual T GetEnvironmentVariable(
ActivityContext^ context,
String^ name
) sealed
abstract GetEnvironmentVariable :
context:ActivityContext *
name:string -> 'T
override GetEnvironmentVariable :
context:ActivityContext *
name:string -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- context
Type: System.Activities.ActivityContext
- name
Type: System.String
Return Value
Type: T
Implements
IEnvironmentVariableExtension.GetEnvironmentVariable<T>(ActivityContext, String)
.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.
See Also
Reference
EnvironmentVariableExtension Class
GetEnvironmentVariable Overload
Microsoft.TeamFoundation.Build.Activities.Extensions Namespace