GetDeclaredMethods Method

TypeInfo.GetDeclaredMethods Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a collection that contains all public methods declared on the current type that match the specified name.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Overridable Function GetDeclaredMethods ( _
	name As String _
) As IEnumerable(Of MethodInfo)

Parameters

name
Type: System.String
The method name to search for.

Return Value

Type: System.Collections.Generic.IEnumerable(Of MethodInfo)
A collection that contains methods that match name.

ExceptionCondition
ArgumentNullException

name is Nothing.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft