GetOrCreateObjectAsync Method
Overloads
| GetOrCreateObjectAsync(GenericObjectProperties) |
Get or create a generic object at app level with a specific Id and Type. Id and Type are specified in the GenericObjectProperties passed in. All other fields in this parameter serve as default properties. If the object does not exist with that Id, it is created and initialized from the default properties. If the object already exists, it is not changed. The properties passed in are not used. The call will fail if the Id is already used for another purpose, such as for an object of a different Type. |
|
| GetOrCreateObjectAsync(AsyncHandle, GenericObjectProperties) |
Get or create a generic object at app level with a specific Id and Type. Id and Type are specified in the GenericObjectProperties passed in. All other fields in this parameter serve as default properties. If the object does not exist with that Id, it is created and initialized from the default properties. If the object already exists, it is not changed. The properties passed in are not used. The call will fail if the Id is already used for another purpose, such as for an object of a different Type. |
|
| GetOrCreateObjectAsync<T>(AsyncHandle, Func<Response, T>, GenericObjectProperties) |
Get or create a generic object at app level with a specific Id and Type. Id and Type are specified in the GenericObjectProperties passed in. All other fields in this parameter serve as default properties. If the object does not exist with that Id, it is created and initialized from the default properties. If the object already exists, it is not changed. The properties passed in are not used. The call will fail if the Id is already used for another purpose, such as for an object of a different Type. |
GetOrCreateObjectAsync(GenericObjectProperties)
Get or create a generic object at app level with a specific Id and Type.
Id and Type are specified in the GenericObjectProperties passed in.
All other fields in this parameter serve as default properties.
If the object does not exist with that Id, it is created and initialized from the default properties.
If the object already exists, it is not changed. The properties passed in are not used.
The call will fail if the Id is already used for another purpose, such as for an object of a different Type.
Declaration
Task<GetOrCreateObjectResult> GetOrCreateObjectAsync([QixName("qProp")] GenericObjectProperties prop)
Parameters
| Type | Name | Description |
|---|---|---|
| GenericObjectProperties | prop |
GenericObjectProperties with at least Info : { "qId": "<identifier of the new generic object>", "qType": "<type of the new generic object>" } |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetOrCreateObjectResult> |
GetOrCreateObjectAsync(AsyncHandle, GenericObjectProperties)
Get or create a generic object at app level with a specific Id and Type.
Id and Type are specified in the GenericObjectProperties passed in.
All other fields in this parameter serve as default properties.
If the object does not exist with that Id, it is created and initialized from the default properties.
If the object already exists, it is not changed. The properties passed in are not used.
The call will fail if the Id is already used for another purpose, such as for an object of a different Type.
Declaration
Task<GetOrCreateObjectResult> GetOrCreateObjectAsync(AsyncHandle asyncHandle, [QixName("qProp")] GenericObjectProperties prop)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncHandle | asyncHandle |
Handle to asynchronous method request |
| GenericObjectProperties | prop |
GenericObjectProperties with at least Info : { "qId": "<identifier of the new generic object>", "qType": "<type of the new generic object>" } |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetOrCreateObjectResult> |
GetOrCreateObjectAsync<T>(AsyncHandle, Func<Response, T>, GenericObjectProperties)
Get or create a generic object at app level with a specific Id and Type.
Id and Type are specified in the GenericObjectProperties passed in.
All other fields in this parameter serve as default properties.
If the object does not exist with that Id, it is created and initialized from the default properties.
If the object already exists, it is not changed. The properties passed in are not used.
The call will fail if the Id is already used for another purpose, such as for an object of a different Type.
Declaration
Task<T> GetOrCreateObjectAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qProp")] GenericObjectProperties prop)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncHandle | asyncHandle |
Handle to asynchronous method request |
| System.Func<Response, T> | onResult |
Continuation function |
| GenericObjectProperties | prop |
GenericObjectProperties with at least Info : { "qId": "<identifier of the new generic object>", "qType": "<type of the new generic object>" } |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T |