Share via


Util.ProbeType Method

Returns the member information from a type for a field or a property by using reflection.

Namespace:  Microsoft.BusinessData.Infrastructure
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Public Shared Function ProbeType ( _
    type As Type, _
    fieldOrPropertyName As String, _
    bindingFlags As BindingFlags _
) As MemberInfo
'Usage
Dim type As Type
Dim fieldOrPropertyName As String
Dim bindingFlags As BindingFlags
Dim returnValue As MemberInfo

returnValue = Util.ProbeType(type, _
    fieldOrPropertyName, bindingFlags)
public static MemberInfo ProbeType(
    Type type,
    string fieldOrPropertyName,
    BindingFlags bindingFlags
)

Parameters

  • type
    Type: System.Type

    The type that contains the member.

  • fieldOrPropertyName
    Type: System.String

    The name of the field or property.

Return Value

Type: System.Reflection.MemberInfo
The member information for the specified type of the specified field or property.

See Also

Reference

Util Class

Util Members

Microsoft.BusinessData.Infrastructure Namespace