#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6.1mscorlib.dll
#endregion
using System.Runtime.InteropServices;
namespace System.Reflection
{
//
// 摘要:
// 为支持自定义属性的反映对象提供自定义属性。
[ComVisible(true)]
public interface ICustomAttributeProvider
{
//
// 摘要:
// 返回在该成员上定义、由类型标识的自定义属性数组,如果没有该类型的自定义属性,则返回空数组。
//
// 参数:
// attributeType:
// 自定义属性的类型。
//
// inherit:
// 为 true 时,查找继承的自定义特性的层次结构链。
//
// 返回结果:
// 表示自定义特性的对象数组或空数组。
//
// 异常:
// T:System.TypeLoadException:
// 无法加载自定义特性类型。
//
// T:System.ArgumentNullException:
// attributeType 为 null。
object[] GetCustomAttributes(Type attributeType, bool inherit);
//
// 摘要:
// 返回在该成员上定义的所有自定义特性的数组(已命名的特性除外),如果没有自定义特性,则返回空数组。
//
// 参数:
// inherit:
// 为 true 时,查找继承的自定义特性的层次结构链。
//
// 返回结果:
// 表示自定义特性的对象数组或空数组。
//
// 异常:
// T:System.TypeLoadException:
// 无法加载自定义特性类型。
//
// T:System.Reflection.AmbiguousMatchException:
// 此成员上定义了多个 attributeType 类型的特性。
object[] GetCustomAttributes(bool inherit);
//
// 摘要:
// 指示是否在该成员上定义了一个或多个 attributeType 实例。
//
// 参数:
// attributeType:
// 自定义属性的类型。
//
// inherit:
// 为 true 时,查找继承的自定义特性的层次结构链。
//
// 返回结果:
// 如果在该成员上定义 attributeType,则为 true;否则为 false。
bool IsDefined(Type attributeType, bool inherit);
}
}