Share via


Task.EnvironmentVariables Property

Retrieves the environment variables that were set for the task.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
<XmlArrayItemAttribute("Variable", Type:=GetType(NameValue))> _
<XmlArrayAttribute("EnvironmentVariables", IsNullable:=True)> _
Public ReadOnly Property EnvironmentVariables As NameValueCollection
[XmlArrayItemAttribute("Variable", Type=typeof(NameValue))] 
[XmlArrayAttribute("EnvironmentVariables", IsNullable=true)] 
public NameValueCollection EnvironmentVariables { get; }
[XmlArrayItemAttribute(L"Variable", Type=typeof(NameValue))] 
[XmlArrayAttribute(L"EnvironmentVariables", IsNullable=true)] 
public:
virtual property NameValueCollection^ EnvironmentVariables {
    NameValueCollection^ get () sealed;
}
/** @property */
public final NameValueCollection get_EnvironmentVariables ()
public final function get EnvironmentVariables () : NameValueCollection

Property Value

A NameValueCollection class that contains the collection of environment variables that were set using the Task.SetEnvironmentVariable method. The collection contains an INameValue interface for each environment variable that has been set. The collection is empty if no variables have been set.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP

Target Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities

See Also

Reference

Task Class
Task Members
Microsoft.ComputeCluster Namespace