RuntimeOps.ExpandoTryGetValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
do not use this method
取得 expando 物件中某個項目的值。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
static bool ExpandoTryGetValue(System::Dynamic::ExpandoObject ^ expando, System::Object ^ indexClass, int index, System::String ^ name, bool ignoreCase, [Runtime::InteropServices::Out] System::Object ^ % value);
[System.Obsolete("do not use this method", true)]
public static bool ExpandoTryGetValue(System.Dynamic.ExpandoObject expando, object indexClass, int index, string name, bool ignoreCase, out object value);
[<System.Obsolete("do not use this method", true)>]
static member ExpandoTryGetValue : System.Dynamic.ExpandoObject * obj * int * string * bool * obj -> bool
Public Shared Function ExpandoTryGetValue (expando As ExpandoObject, indexClass As Object, index As Integer, name As String, ignoreCase As Boolean, ByRef value As Object) As Boolean
參數
- expando
- ExpandoObject
擴展物件。
- indexClass
- Object
擴展物件的類別。
- index
- Int32
成員的索引。
- name
- String
成員的名稱。
- ignoreCase
- Boolean
若忽略格,則為真;否則就是錯誤的。
- value
- Object
出參數包含成員的值。
傳回
true 若該成員存在於 expando 物件中,否則 false。
- 屬性