RuntimeOps.ExpandoTryDeleteValue 方法

定义

注意

do not use this method

删除 expando 对象中某项的值。

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

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

参数

expando
ExpandoObject

Expando 对象。

indexClass
Object

Expando 对象的类。

index
Int32

成员的索引。

name
String

成员名。

ignoreCase
Boolean

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

返回

如果成功移除了该项,则为 true;否则为 false

属性

适用于