RuntimeOps.ExpandoTryGetValue Method (ExpandoObject, Object, Int32, String, Boolean, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

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

Gets the value of an item in an expando object.

Namespace:   System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

[ObsoleteAttribute("do not use this method", true)]
public static bool ExpandoTryGetValue(
	ExpandoObject expando,
	object indexClass,
	int index,
	string name,
	bool ignoreCase,
	out object value
)

Parameters

expando
Type: System.Dynamic.ExpandoObject

The expando object.

indexClass
Type: System.Object

The class of the expando object.

index
Type: System.Int32

The index of the member.

name
Type: System.String

The name of the member.

ignoreCase
Type: System.Boolean

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

value
Type: System.Object

The out parameter containing the value of the member.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show: