Export (0) Print
Expand All

TypeInfo.GetDeclaredMethods Method

.NET Framework 4.5

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)

public virtual IEnumerable<MethodInfo> GetDeclaredMethods(
	string name
)

Parameters

name
Type: System.String

The method name to search for.

Return Value

Type: System.Collections.Generic.IEnumerable<MethodInfo>
A collection that contains methods that match name.

ExceptionCondition
ArgumentNullException

name is null.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft