StackFrame.GetField(String, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過搜尋作用域階層,取得一個名稱為指定欄位的欄位。 此方法僅搜尋詞彙層級指定的範圍。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
virtual System::Reflection::FieldInfo ^ GetField(System::String ^ name, int lexLevel);
public System.Reflection.FieldInfo GetField(string name, int lexLevel);
override this.GetField : string * int -> System.Reflection.FieldInfo
Public Function GetField (name As String, lexLevel As Integer) As FieldInfo
參數
- name
- String
要搜尋的欄位名稱。
- lexLevel
- Int32
搜尋的詞彙層次。
傳回
在所有情況下都是零。