Udostępnij za pośrednictwem


Klasa PostRequestEventArgs

Dostarcza dane dla WebTestRequest.PostRequest i WebTest.PostRequest zdarzenia.

Hierarchia dziedziczenia

Object
  EventArgs
    Microsoft.VisualStudio.TestTools.WebTesting.PostRequestEventArgs
      Microsoft.VisualStudio.TestTools.WebTesting.PostPageEventArgs

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.WebTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.WebTestFramework (w Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Składnia

'Deklaracja
Public Class PostRequestEventArgs _
    Inherits EventArgs
public class PostRequestEventArgs : EventArgs
public ref class PostRequestEventArgs : public EventArgs
type PostRequestEventArgs =  
    class 
        inherit EventArgs 
    end
public class PostRequestEventArgs extends EventArgs

Typ PostRequestEventArgs uwidacznia następujące elementy członkowskie.

Właściwości

  Nazwa Opis
Właściwość publiczna Request Pobiera WebTestRequest to jest źródłem PostRequest zdarzenia.
Właściwość publiczna Response Pobiera WebTestResponse generowany przez żądanie.
Właściwość publiczna ResponseExists Pobiera wartość, która wskazuje, czy istnieje odpowiedzi.
Właściwość publiczna WebTest Pobiera WebTest , która zawiera żądanie.

Początek

Metody

  Nazwa Opis
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda publiczna ToString Returns a string that represents the current object. (Odziedziczone z Object).

Początek

Uwagi

Zapewnia to odwołanie do WebTest wygenerowany PostRequest zdarzenie, WebTestRequest to jest źródło wniosek oraz WebTestResponse generowany przez żądanie.

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.TestTools.WebTesting

Inne zasoby

Working with Web Tests