Response Class

Definition

public class Response : Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.EventData
type Response = class
    inherit EventData
Public Class Response
Inherits EventData
Inheritance
Response
Derived

Constructors

Response()

Fields

Cancel

Cancellation method for this event.

If the event consumer wishes to cancel the request that initiated this event, call Cancel()

(Inherited from EventData)
ExtendedData

Any extended data for an event should be serialized and stored here.

(Inherited from EventData)
Id

The type of the event being signaled

(Inherited from EventData)
Message

The user-ready message from the event.

(Inherited from EventData)
Parameter

When the event is about a parameter, this is the parameter name. Used in Validation Events

(Inherited from EventData)
RequestMessage

If the event triggers after the request message has been created, this will contain the Request Message (which in HTTP calls would be HttpRequestMessage)

Typically you'd cast this to the expected type to use it:

if(eventData.RequestMessgae is HttpRequestMessage httpRequest) 
{
  httpRequest.Headers.Add("x-request-flavor", "vanilla");
}
(Inherited from EventData)
ResponseMessage

If the event triggers after the response is back, this will contain the Response Message (which in HTTP calls would be HttpResponseMessage)

Typically you'd cast this to the expected type to use it:

if(eventData.ResponseMessage is HttpResponseMessage httpResponse){
  var flavor = httpResponse.Headers.GetValue("x-request-flavor");
}
(Inherited from EventData)
Value

This represents a numeric value associated with the event. Use for progress-style events

(Inherited from EventData)

Applies to