Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the cluster-wide environment variables. The variables are available to all tasks on all nodes.
This property is read-only.
Syntax
HRESULT get_EnvironmentVariables(
  [out] INameValueCollection **pEnvVariables
);
Property value
An INameValueCollection interface that contains a collection of environment variables defined for the cluster. The variant type of each item is VT_DISPATCH. Query the pdispVal member of the variant for the INameValue interface.
Error codes
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
Remarks
To set a cluster-wide environment variable, call the IScheduler::SetEnvironmentVariable method.
Requirements
| Product | HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities | 
| Type library | Microsoft.Hpc.Scheduler.tlb |