共用方式為


JsonValue.ContainsKey Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Overridable Function ContainsKey ( _
    key As String _
) As Boolean
public virtual bool ContainsKey(
    string key
)

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

Exceptions

Exception Condition
ArgumentNullException

key is nulla null reference (Nothing in Visual Basic).

Remarks

This method is overridden in JsonObject(), where it returns a value that indicates whether the key specified is contained in the instance of the JsonObject() queried.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.