Udostępnij za pośrednictwem


Klasa WebTestRequestHeader

Reprezentuje nagłówek HTTP.

Hierarchia dziedziczenia

Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestHeader

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

Składnia

'Deklaracja
<SerializableAttribute> _
Public Class WebTestRequestHeader _
    Implements ICloneable
[SerializableAttribute]
public class WebTestRequestHeader : ICloneable
[SerializableAttribute]
public ref class WebTestRequestHeader : ICloneable
[<SerializableAttribute>]
type WebTestRequestHeader =  
    class 
        interface ICloneable 
    end
public class WebTestRequestHeader implements ICloneable

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

Konstruktorzy

  Nazwa Opis
Metoda publiczna WebTestRequestHeader() Inicjuje nowe wystąpienie WebTestRequestHeader klasy.
Metoda publiczna WebTestRequestHeader(String, String) Inicjuje nowe wystąpienie WebTestRequestHeader klasy z wartościami dla Name i Value właściwości.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna Name Pobiera lub ustawia nazwę nagłówka żądania.
Właściwość publiczna Value Zwraca lub ustawia wartość nagłówka żądania.

Początek

Metody

  Nazwa Opis
Metoda publiczna Clone Tworzy kopię bieżącej instancji.
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

Ta klasa jest możliwy do serializacji.

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