CustomReflectionContext.GetCustomAttributes Method (ParameterInfo, IEnumerable<Object>)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, provides a list of custom attributes for the specified parameter, as represented in this reflection context.

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

protected virtual IEnumerable<object> GetCustomAttributes(
	ParameterInfo parameter,
	IEnumerable<object> declaredAttributes
)

Parameters

parameter
Type: System.Reflection.ParameterInfo

The parameter whose custom attributes will be returned.

declaredAttributes
Type: System.Collections.Generic.IEnumerable<Object>

A collection of the parameter's attributes in its current context.

Return Value

Type: System.Collections.Generic.IEnumerable<Object>

A collection that represents the custom attributes of the specified parameter in this reflection context.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: