共用方式為


DigitalTwinsClient.GetEventRoutes(CancellationToken) Method

Definition

. Lists the event routes in a digital twins instance by iterating through a collection synchronously.

public virtual Azure.Pageable<Azure.DigitalTwins.Core.DigitalTwinsEventRoute> GetEventRoutes (System.Threading.CancellationToken cancellationToken = default);
abstract member GetEventRoutes : System.Threading.CancellationToken -> Azure.Pageable<Azure.DigitalTwins.Core.DigitalTwinsEventRoute>
override this.GetEventRoutes : System.Threading.CancellationToken -> Azure.Pageable<Azure.DigitalTwins.Core.DigitalTwinsEventRoute>
Public Overridable Function GetEventRoutes (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DigitalTwinsEventRoute)

Parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

The pageable list Pageable<T> of application/json event routes and the HTTP response.

Exceptions

The exception that captures the errors from the service. Check the ErrorCode and Status properties for more details.

Remarks

For more samples, see our repo samples.

Applies to

See also