Type.FindMembers : Type « System « VB.Net by API






Type.FindMembers

  
Imports System
Imports System.Reflection

 
Public Class MainClass

    Shared Sub Main(  )
         Dim t As Type = Type.GetType("System.Reflection.Assembly")

         Dim mbrInfoArray As MemberInfo(  ) = t.FindMembers( _
             MemberTypes.Method, _
             BindingFlags.Public Or _
             BindingFlags.Static Or _
             BindingFlags.NonPublic Or _
             BindingFlags.Instance Or _
             BindingFlags.DeclaredOnly, _
             Type.FilterName, "Get*")

         Dim inf As MemberInfo
         For Each inf In mbrInfoArray
             Console.WriteLine("{0} is a {1}", _
                 inf, inf.MemberType)
         Next
    End Sub
  
End Class

   
    
  








Related examples in the same category

1.Type.GetHashCode()
2.Type.GetInterfaces()
3.Type.GetMembers()
4.Type.GetMethod
5.Type.GetType()
6.Type.UnderlyingSystemType