C1.WPF.Document Assembly / C1.WPF.Document Namespace / Utils Class / GetProperty Method
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.
he string containing the name of the property to get.
A bit-mask 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.

In This Topic
GetProperty Method (Utils)
In This Topic
Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.
Syntax
'Declaration
 
Public Shared Function GetProperty( _
   ByVal type As Type, _
   ByVal name As String, _
   ByVal bindingFlags As BindingFlags, _
   ByVal returnType As Type, _
   ByVal paramTypes() As Type _
) As PropertyInfo
 

Parameters

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.

Return Value

An object representing the property that matches the specified requirements, if found; otherwise, null.
See Also