Version

Item Property (ResourcePreferencesCollection)

Gets/sets a ResourcePreference object at the specified index.
Syntax
'Declaration
 
Public Default Property Item( _
   ByVal index As Integer _
) As ResourcePreference
public ResourcePreference this[ 
   int index
]; {get; set;}

Parameters

index
A zero-based index less than the Count of preference objects within the collection.

Property Value

The ResourcePreference object at the specified index.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThrown when the index specified exceeds the number of ResourcePreference objects already in the collection. Use an index within the bounds of the collection, or do not index from an empty collection.
Remarks

The index value should correspond to the sequence number of the [ResourcePreference] row in a many-to-one relationship with the parent [Resource] row. WebSchedule currently supports only a single instance of a ResourcePreference being associated with any given Resource object, but this relationship has been reserved to allow for multiple preference objects in the future.

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