Rediger

Del via


RuntimeOps.ExpandoTrySetValue Method

Definition

Caution

do not use this method

Sets 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 System::Object ^ ExpandoTrySetValue(System::Dynamic::ExpandoObject ^ expando, System::Object ^ indexClass, int index, System::Object ^ value, System::String ^ name, bool ignoreCase);
[System.Obsolete("do not use this method", true)]
public static object ExpandoTrySetValue (System.Dynamic.ExpandoObject expando, object indexClass, int index, object value, string name, bool ignoreCase);
[<System.Obsolete("do not use this method", true)>]
static member ExpandoTrySetValue : System.Dynamic.ExpandoObject * obj * int * obj * string * bool -> obj
Public Shared Function ExpandoTrySetValue (expando As ExpandoObject, indexClass As Object, index As Integer, value As Object, name As String, ignoreCase As Boolean) As Object

Parameters

expando
ExpandoObject

The expando object.

indexClass
Object

The class of the expando object.

index
Int32

The index of the member.

value
Object

The value of the member.

name
String

The name of the member.

ignoreCase
Boolean

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

Returns

The index for the set member.

Attributes

Applies to