Udostępnij za pośrednictwem


Klasa ContextParameter

Reprezentuje pojedynczy parametr w kontekście testowania wydajności sieci Web, zawierającej nazwę i wartość.

Hierarchia dziedziczenia

Object
  Microsoft.VisualStudio.TestTools.WebTesting.ContextParameter

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

Składnia

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

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

Konstruktorzy

  Nazwa Opis
Metoda publiczna ContextParameter() Inicjuje nowe wystąpienie ContextParameter klasy.
Metoda publiczna ContextParameter(String, String) Inicjuje nowe wystąpienie ContextParameter klasy przy użyciu podanej nazwy i wartości.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna Name Zwraca lub ustawia nazwę ContextParameter.
Właściwość publiczna Value Zwraca lub ustawia wartość ContextParameter.

Początek

Metody

  Nazwa Opis
Metoda publiczna Clone Tworzy nowy ContextParameter to jest kopia 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

A ContextParameter obiektu zwykle jest jednym z wielu ContextParameter obiektów, właściwości WebTest.Context, który jest kolekcją ContextParameter obiektów.

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