Method GetComponentByOccurrence
GetComponentByOccurrence(OccurrenceList, ComponentType, bool)
Returns one component of the specified type by occurrence if it exists
Declaration
[HandleProcessCorruptedStateExceptions]
public ComponentList GetComponentByOccurrence(OccurrenceList occurrences, ComponentType componentType, bool followPrototypes = true)
Parameters
| Type | Name | Description | 
|---|---|---|
| OccurrenceList | occurrences | The occurrences list  | 
    
| ComponentType | componentType | Type of the component  | 
    
| bool | followPrototypes | If true and if the component is not set on the occurrence, try to find it on its prototyping chain  | 
    
Returns
| Type | Description | 
|---|---|
| ComponentList |