Version

Key Property (Resource)

Gets or sets the key for this Resource that it is locally unique within it's containing ResourceCollection.
Syntax
'Declaration
 
Public Overrides NotOverridable Property Key As String
public override string Key {get; set;}
Exceptions
ExceptionDescription
System.NotSupportedExceptionThrown when the key specified is reserved for use by the UnassignedResource only, or when attempting to modify the key of the UnassignedResource because the UnassignedResource is limited to a single entity that must always have it's reserved key.
Remarks

The Key is used to lookup and administer the Resource instance in it's collection, and is distinct from the Name which identifies the Resource in a user-friendly manner. For example, a Resource may have the Key 17, while having a more memorable Name such as "Bob."

The Key value -999 is reserved for use by the UnassignedResource, and cannot be specified for other resources in a scheduling application.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also