LoadTestContext.ContainsKey Method
Indicates whether the LoadTestContext contains an element that has the specified key.
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Function ContainsKey ( _
key As String _
) As Boolean
public bool ContainsKey(
string key
)
public:
virtual bool ContainsKey(
String^ key
) sealed
abstract ContainsKey :
key:string -> bool
override ContainsKey :
key:string -> bool
public final function ContainsKey(
key : String
) : boolean
Parameters
- key
Type: System.String
The key to locate in the LoadTestContext.
Return Value
Type: System.Boolean
true if the LoadTestContext contains an element that has the key; otherwise, false.
Implements
IDictionary<TKey, TValue>.ContainsKey(TKey)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.