DigitalTwinsClient.CreateOrReplaceEventRoute 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.
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
Parameters
- eventRouteId
- String
The Id of the event route to create.
- eventRoute
- DigitalTwinsEventRoute
The event route data containing the endpoint and optional filter.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The HTTP response 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 eventRouteId
is null
.
Remarks
For more samples, see our repo samples.
Applies to
See also
Azure SDK for .NET