Method FindProperty
FindProperty(string, MaterialProperty[])
Searches and tries to find a property in an array of properties.
Declaration
public static MaterialProperty FindProperty(string propertyName, MaterialProperty[] properties)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property to find. |
| MaterialProperty[] | properties | Array of properties to search in. |
Returns
| Type | Description |
|---|---|
| MaterialProperty | A MaterialProperty instance for the property. |
FindProperty(string, MaterialProperty[], bool)
Searches and tries to find a property in an array of properties.
Declaration
public static MaterialProperty FindProperty(string propertyName, MaterialProperty[] properties, bool propertyIsMandatory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property to find. |
| MaterialProperty[] | properties | Array of properties to search in. |
| bool | propertyIsMandatory | Should throw exception if property is not found |
Returns
| Type | Description |
|---|---|
| MaterialProperty | A MaterialProperty instance for the property. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |