Method TryGetContextObject
TryGetContextObject<T>(out T)
Tries to get the data of the specified type contained in the build context.
Declaration
bool TryGetContextObject<T>(out T contextObject) where T : IContextObject
Parameters
Type | Name | Description |
---|---|---|
T | contextObject | The object holding the data to be returned if found. |
Returns
Type | Description |
---|---|
bool |
|
Type Parameters
Name | Description |
---|---|
T | Type of data to return. |
TryGetContextObject(Type, out IContextObject)
Tries to get the data of the specified type contained in the build context.
Declaration
bool TryGetContextObject(Type type, out IContextObject contextObject)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of data to return. |
IContextObject | contextObject | The object holding the data to be returned if found. |
Returns
Type | Description |
---|---|
bool |
|