다음을 통해 공유


LoadTestContext.Remove Method (KeyValuePair<String, Object>)

Removes the first occurrence of a specific object from the LoadTestContext.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
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

Parameters

  • item
    Type: KeyValuePair<String, Object>

    The object to remove from the LoadTestContext.

Return Value

Type: Boolean
true if the item was successfully removed from the LoadTestContext; otherwise, false. This method also returns false if the item is not found in the original LoadTestContext.

Implements

ICollection.Remove(UTP)

.NET Framework Security

See Also

Reference

LoadTestContext Class

Remove Overload

Microsoft.VisualStudio.TestTools.LoadTesting Namespace