LoadTestContext.Remove 方法 (KeyValuePair<String, Object>)

LoadTestContext 移除特定物件的第一個相符項目。

命名空間:  Microsoft.VisualStudio.TestTools.LoadTesting
組件:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

語法

'宣告
Public Function Remove ( _
    item As KeyValuePair(Of String, Object) _
) As Boolean
public bool Remove(
    KeyValuePair<string, Object> item
)
public:
virtual bool Remove(
    KeyValuePair<String^, Object^> item
) sealed
abstract Remove : 
        item:KeyValuePair<string, Object> -> bool 
override Remove : 
        item:KeyValuePair<string, Object> -> bool 
public final function Remove(
    item : KeyValuePair<String, Object>
) : boolean

參數

傳回值

型別:System.Boolean
如果項目從 LoadTestContext 中成功移除則為 true,否則為 false。如果在原始的 LoadTestContext 中找不到該項目,這個方法也會傳回 false。

實作

ICollection<T>.Remove(T)

.NET Framework 安全性

請參閱

參考

LoadTestContext 類別

Remove 多載

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間