RuntimeOps.ExpandoTrySetValue 方法

定义

注意

do not use this method

设置 expando 对象中某项的值。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

expando
ExpandoObject

Expando 对象。

indexClass
Object

Expando 对象的类。

index
Int32

成员的索引。

value
Object

成员的值。

name
String

成员名。

ignoreCase
Boolean

如果在匹配名称时应忽略大小写,则为 true;否则为 false。

返回

集成员的索引。

属性

适用于