Home All Groups Group Topic Archive Search About
Author
15 Feb 2006 5:37 PM
Angel
I am having a problem invoking a member in a class. When i perform the
following code the member is listed in the MethodInfo of the instantiation of
the class type(oImaging):

Dim oImaging As Type = Type.GetType(Request.QueryString("TYPE"), True, True)

Dim o As System.Reflection.MethodInfo =
oImaging.GetMethod(Request.QueryString("MOD"))

But when I perform the following code I get an Error that the Member is not
found!:

oImaging.InvokeMember(Request.QueryString("MOD"),
Reflection.BindingFlags.Public Or Reflection.BindingFlags.Instance Or
Reflection.BindingFlags.Static Or Reflection.BindingFlags.InvokeMethod,
Nothing, Nothing, Nothing)

The Class looks as follows:

    Public Class ImagingReports

         Public Shared Function GetFAStudentFileStatus(ByVal syCampusID As
Integer, ByVal intADShift As Integer, ByVal strStudentStatus As String, ByVal
strStartDate As String, ByVal intCountType As Integer) As DataSet

         End Function

    End Class


Am I missing a BinderFlag in the InvokeMember. I do not understand why I get
the error message eventhough it is returned when I get it at the MemberInfo.
Any thoughts on this immediately would be greatly appreciated!

Thanks in advance

AddThis Social Bookmark Button