Edit

Kongsi melalui


RuntimeOps.ExpandoTryGetValue Method

Definition

Caution

do not use this method

Gets the value of an item in an expando object.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static bool ExpandoTryGetValue(System::Dynamic::ExpandoObject ^ expando, System::Object ^ indexClass, int index, System::String ^ name, bool ignoreCase, [Runtime::InteropServices::Out] System::Object ^ % value);
[System.Obsolete("do not use this method", true)]
public static bool ExpandoTryGetValue (System.Dynamic.ExpandoObject expando, object indexClass, int index, string name, bool ignoreCase, out object value);
[<System.Obsolete("do not use this method", true)>]
static member ExpandoTryGetValue : System.Dynamic.ExpandoObject * obj * int * string * bool * obj -> bool
Public Shared Function ExpandoTryGetValue (expando As ExpandoObject, indexClass As Object, index As Integer, name As String, ignoreCase As Boolean, ByRef value As Object) As Boolean

Parameters

expando
ExpandoObject

The expando object.

indexClass
Object

The class of the expando object.

index
Int32

The index of the member.

name
String

The name of the member.

ignoreCase
Boolean

true if the name should be matched ignoring case; false otherwise.

value
Object

The out parameter containing the value of the member.

Returns

true if the member exists in the expando object, otherwise false.

Attributes

Applies to