Method FindModelById
FindModelById<TAuraModel>(string)
Finds a model of the specified type by its globally unique identifier.
Declaration
TAuraModel FindModelById<TAuraModel>(string modelId) where TAuraModel : class, IAuraObject
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The globally unique identifier of the model. |
Returns
Type | Description |
---|---|
TAuraModel | The model with the specified identifier, or null if not found. Focus on the fact that this method could potentially return null if the model is not found. |
Type Parameters
Name | Description |
---|---|
TAuraModel | The type of the model to find. |