ScriptObject.GetMethods(BindingFlags) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一組 MethodInfo 物件陣列,對應目前腳本物件的所有方法。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
virtual cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingAttr);
public virtual System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags bindingAttr);
abstract member GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
override this.GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Public Overridable Function GetMethods (bindingAttr As BindingFlags) As MethodInfo()
參數
- bindingAttr
- BindingFlags
以位元組合列舉值,指定如何透過反射方式搜尋成員。
傳回
一個包含目前腳本物件所有方法的物件陣列。