共用方式為


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

WebTestContext 移除 KeyValuePair

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

語法

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

參數

  • keyValuePair
    類型:KeyValuePair<String, Object>

    要從集合中移除的 KeyValuePair 物件。

傳回值

類型:Boolean
如果成功移除項目,則為 true,否則為 false。如果找不到索引鍵,它也會傳回 false。

實作

ICollection.Remove(UTP)

備註

如果找不到要移除的索引鍵,則基礎集合將不會有所變更。

.NET Framework 安全性

請參閱

參考

WebTestContext 類別

Remove 多載

Microsoft.VisualStudio.TestTools.WebTesting 命名空間