ContextParameter 類別
表示 Web 效能測試內容中含有名稱和值的單一參數。
繼承階層架構
System.Object
Microsoft.VisualStudio.TestTools.WebTesting.ContextParameter
命名空間: Microsoft.VisualStudio.TestTools.WebTesting
組件: Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
語法
'宣告
<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
ContextParameter 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
ContextParameter() | 初始化 ContextParameter 類別的新執行個體。 |
![]() |
ContextParameter(String, String) | 使用提供的名稱和值,初始化 ContextParameter 類別的新執行個體。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
Name | 取得或設定 ContextParameter 的名稱。 |
![]() |
Value | 取得或設定 ContextParameter 的值。 |
回頁首
方法
名稱 | 說明 | |
---|---|---|
![]() |
Clone | 建立新的 ContextParameter,這是目前執行個體的複本。 |
![]() |
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 |
![]() |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 做為特定型別的雜湊函式。 (繼承自 Object)。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
![]() |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
備註
ContextParameter 物件通常是 WebTest.Context 屬性中許多 ContextParameter 物件的其中一個,而這個屬性是 ContextParameter 物件的集合。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。