Constructs a ResourcePreference object.

C# |
public ResourcePreference( string expr )

- expr (String)
- The preference expression to be used at evaluation time.

NOTE: Refer to "Specifying Resource Preference for Sessions and Tasks" in the Cluster and Application Management guide or to the Data-aware Scheduling User Guide for more details on the preference expression syntax.
Gives a more complex interface for allowing the developer to construct a string representation of the preference. The expression cannot exceed a length of 2048 characters.