Twins Client. Get Relationships<T> Method
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 on a digital twin by iterating through a collection synchronously.
public virtual Azure.Pageable<T> GetRelationships<T> (string digitalTwinId, string relationshipName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRelationships : string * string * System.Threading.CancellationToken -> Azure.Pageable<'T> override this.GetRelationships : string * string * System.Threading.CancellationToken -> Azure.Pageable<'T>
Public Overridable Function GetRelationships(Of T) (digitalTwinId As String, Optional relationshipName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of T)
The type to deserialize the relationship to.
The Id of the source digital twin.
The name of a relationship to filter to. If null, all relationships for the digital twin will be returned.
The cancellation token.
The pageable list Pageable<T> of application/json relationships belonging to the specified digital twin and the http response.
The exception is thrown when
For more samples, see our repo samples.