FlexReport for WinForms
GetMethod メソッド (Utils)


C1.Document.4.6.2 アセンブリ > C1.Document 名前空間 > Utils クラス : GetMethod メソッド
Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.
The string containing the name of the method to get.
A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. -or- Zero, to return null.
An array of System.Type objects representing the number, order, and type of the parameters for the method to get. -or- An empty array of System.Type objects (as provided by the System.Type.EmptyTypes field) to get a method that takes no parameters.
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.
シンタックス
'宣言
 
Public Shared Function GetMethod( _
   ByVal type As System.Type, _
   ByVal name As System.String, _
   ByVal bindingFlags As System.Reflection.BindingFlags, _
   ByVal paramTypes() As System.Type _
) As System.Reflection.MethodInfo
'使用法
 
Dim type As System.Type
Dim name As System.String
Dim bindingFlags As System.Reflection.BindingFlags
Dim paramTypes() As System.Type
Dim value As System.Reflection.MethodInfo
 
value = Utils.GetMethod(type, name, bindingFlags, paramTypes)
public static System.Reflection.MethodInfo GetMethod( 
   System.Type type,
   System.string name,
   System.Reflection.BindingFlags bindingFlags,
   System.Type[] paramTypes
)

パラメータ

type
Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.
name
The string containing the name of the method to get.
bindingFlags
A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. -or- Zero, to return null.
paramTypes
An array of System.Type objects representing the number, order, and type of the parameters for the method to get. -or- An empty array of System.Type objects (as provided by the System.Type.EmptyTypes field) to get a method that takes no parameters.

戻り値の型

An object representing the method that matches the specified requirements, if found; otherwise, null.
参照

参照

Utils クラス
Utils メンバ