DigitalTwinsClient.GetIncomingRelationships(String, CancellationToken) 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.
Gets all the relationships referencing a digital twin as a target by iterating through a collection synchronously.
public virtual Azure.Pageable<Azure.DigitalTwins.Core.IncomingRelationship> GetIncomingRelationships (string digitalTwinId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIncomingRelationships : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.DigitalTwins.Core.IncomingRelationship>
override this.GetIncomingRelationships : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.DigitalTwins.Core.IncomingRelationship>
Public Overridable Function GetIncomingRelationships (digitalTwinId As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of IncomingRelationship)
Parameters
- digitalTwinId
- String
The Id of the target digital twin.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The pageable list Pageable<T> of application/json relationships directed towards the specified digital twin and the HTTP response.
Exceptions
The exception that captures the errors from the service. Check the ErrorCode and Status properties for more details.
The exception is thrown when digitalTwinId
is null
.
Remarks
For more samples, see our repo samples.
Applies to
See also
Azure SDK for .NET