ExpandoTrySetValue Method

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

 
Note: This API is now obsolete.

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

Sets 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 object ExpandoTrySetValue(
	ExpandoObject expando,
	object indexClass,
	int index,
	object value,
	string name,
	bool ignoreCase
)

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.

value
Type: System.Object

The value 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.

Return Value

Type: System.Object

Returns the index for the set member.

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