Partilhar via


Classe ContextParameter

Representa um único parâmetro no contexto da Web desempenho teste que tenha um nome e valor.

Hierarquia de herança

Object
  Microsoft.VisualStudio.TestTools.WebTesting.ContextParameter

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (em Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintaxe

'Declaração
<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

O tipo ContextParameter expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ContextParameter() Inicializa uma nova instância da classe ContextParameter.
Método público ContextParameter(String, String) Inicializa uma nova instância da ContextParameter classe usando o nome fornecido e o valor.

Superior

Propriedades

  Nome Descrição
Propriedade pública Name Obtém ou define o nome da ContextParameter.
Propriedade pública Value Obtém ou define o valor da ContextParameter.

Superior

Métodos

  Nome Descrição
Método público Clone Cria um novo ContextParameter ou seja, uma cópia da instância atual.
Método público Equals Determines whether the specified object is equal to the current object. (Herdado de Object.)
Método protegido Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.)
Método público GetHashCode Serves as the default hash function. (Herdado de Object.)
Método público GetType Gets the Type of the current instance. (Herdado de Object.)
Método protegido MemberwiseClone Creates a shallow copy of the current Object. (Herdado de Object.)
Método público ToString Returns a string that represents the current object. (Herdado de Object.)

Superior

Comentários

A ContextParameter objeto normalmente é um dos muitos ContextParameter a propriedade de WebTest.Context é uma coleção de objetos ContextParameter objetos.

Acesso thread-safe

Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.

Consulte também

Referência

Namespace Microsoft.VisualStudio.TestTools.WebTesting