Twins Client. Create OrReplace Event Route 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.
Creates an event route synchronously. If the provided event route Id is already in use, then this will attempt to replace the existing event route with the provided event route.
public virtual Azure.Response CreateOrReplaceEventRoute (string eventRouteId, Azure.DigitalTwins.Core.DigitalTwinsEventRoute eventRoute, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrReplaceEventRoute : string * Azure.DigitalTwins.Core.DigitalTwinsEventRoute * System.Threading.CancellationToken -> Azure.Response override this.CreateOrReplaceEventRoute : string * Azure.DigitalTwins.Core.DigitalTwinsEventRoute * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function CreateOrReplaceEventRoute (eventRouteId As String, eventRoute As DigitalTwinsEventRoute, Optional cancellationToken As CancellationToken = Nothing) As Response
The Id of the event route to create.
The event route data containing the endpoint and optional filter.
The cancellation token.
The http response Response.
The exception is thrown when
For more samples, see our repo samples.