RuntimeOps.ExpandoTrySetValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
擴展物件。
- indexClass
- Object
擴展物件的類別。
- index
- Int32
成員的索引。
- value
- Object
成員的值。
- name
- String
成員的名稱。
- ignoreCase
- Boolean
若忽略格,則為真;否則就是錯誤的。
傳回
集合成員的索引。
- 屬性