LoadTestUserContext.Remove 方法 (KeyValuePair<String, Object>)
從 LoadTestUserContext 移除特定物件的第一個相符項目。
命名空間: 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>要從 LoadTestUserContext 中移除的物件。
傳回值
類型:Boolean
如果項目從 LoadTestUserContext 中成功移除則為 true,否則為 false。如果在原始的 LoadTestUserContext 中找不到該項目,這個方法也會傳回 false。
實作
ICollection.Remove(UTP)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。