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 | |
---|---|---|
![]() |
ContextParameter() | Inicializa uma nova instância da classe ContextParameter. |
![]() |
ContextParameter(String, String) | Inicializa uma nova instância da ContextParameter classe usando o nome fornecido e o valor. |
Superior
Propriedades
Nome | Descrição | |
---|---|---|
![]() |
Name | Obtém ou define o nome da ContextParameter. |
![]() |
Value | Obtém ou define o valor da ContextParameter. |
Superior
Métodos
Nome | Descrição | |
---|---|---|
![]() |
Clone | Cria um novo ContextParameter ou seja, uma cópia da instância atual. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Herdado de Object.) |
![]() |
GetType | Gets the Type of the current instance. (Herdado de Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Herdado de Object.) |
![]() |
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.