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

参数

  • item
    类型:KeyValuePair<String, Object>

    要从 LoadTestContext 中移除的对象。

返回值

类型:Boolean
如果从 LoadTestContext 中成功移除了项,则为 true;否则为 false。如果在原始 LoadTestContext 中找不到该项,此方法也会返回 false。

实现

ICollection.Remove(UTP)

.NET Framework 安全性

请参阅

参考

LoadTestContext 类

Remove 重载

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间