'宣言 Public Shared Function GetProperty( _ ByVal type As System.Type, _ ByVal name As System.String, _ ByVal bindingFlags As System.Reflection.BindingFlags, _ ByVal returnType As System.Type, _ ByVal paramTypes() As System.Type _ ) As System.Reflection.PropertyInfo
'使用法 Dim type As System.Type Dim name As System.String Dim bindingFlags As System.Reflection.BindingFlags Dim returnType As System.Type Dim paramTypes() As System.Type Dim value As System.Reflection.PropertyInfo value = Utils.GetProperty(type, name, bindingFlags, returnType, paramTypes)
public static System.Reflection.PropertyInfo GetProperty( System.Type type, System.string name, System.Reflection.BindingFlags bindingFlags, System.Type returnType, 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
- he string containing the name of the property to get.
- bindingFlags
- A bit-mask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. -or- Zero, to return null.
- returnType
- 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 property that matches the specified requirements, if found; otherwise, null.