ObjectObserver.DetectAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DetectAsync(ObjectQuery) |
Detects object instances of a single model with the given query parameters. |
DetectAsync(ObjectQuery[]) |
Detects object instances of multiple models with the given query parameters. |
DetectAsync(ObjectQuery)
Detects object instances of a single model with the given query parameters.
public:
System::Threading::Tasks::Task<System::Collections::Generic::IList<Microsoft::Azure::ObjectAnchors::ObjectInstance ^> ^> ^ DetectAsync(Microsoft::Azure::ObjectAnchors::ObjectQuery ^ query);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Azure.ObjectAnchors.ObjectInstance>> DetectAsync (Microsoft.Azure.ObjectAnchors.ObjectQuery query);
member this.DetectAsync : Microsoft.Azure.ObjectAnchors.ObjectQuery -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Azure.ObjectAnchors.ObjectInstance>>
Public Function DetectAsync (query As ObjectQuery) As Task(Of IReadOnlyList(Of ObjectInstance))
Parameters
- query
- ObjectQuery
An object query.
Returns
Applies to
DetectAsync(ObjectQuery[])
Detects object instances of multiple models with the given query parameters.
public:
System::Threading::Tasks::Task<System::Collections::Generic::IList<Microsoft::Azure::ObjectAnchors::ObjectInstance ^> ^> ^ DetectAsync(cli::array <Microsoft::Azure::ObjectAnchors::ObjectQuery ^> ^ queries);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Azure.ObjectAnchors.ObjectInstance>> DetectAsync (Microsoft.Azure.ObjectAnchors.ObjectQuery[] queries);
member this.DetectAsync : Microsoft.Azure.ObjectAnchors.ObjectQuery[] -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Azure.ObjectAnchors.ObjectInstance>>
Public Function DetectAsync (queries As ObjectQuery()) As Task(Of IReadOnlyList(Of ObjectInstance))
Parameters
- queries
- ObjectQuery[]
An array of object queries.