Share via


EventGridModelFactory.SubscriptionValidationEventData(String, String) Method

Definition

Initializes a new instance of SubscriptionValidationEventData.

public static Azure.Messaging.EventGrid.SystemEvents.SubscriptionValidationEventData SubscriptionValidationEventData (string validationCode = default, string validationUrl = default);
static member SubscriptionValidationEventData : string * string -> Azure.Messaging.EventGrid.SystemEvents.SubscriptionValidationEventData
Public Shared Function SubscriptionValidationEventData (Optional validationCode As String = Nothing, Optional validationUrl As String = Nothing) As SubscriptionValidationEventData

Parameters

validationCode
String

The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).

validationUrl
String

The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).

Returns

A new SubscriptionValidationEventData instance for mocking.

Applies to