packages/System.Reflection.Extensions.4.3.0/ref/netstandard1.0/zh-hans/System.Reflection.Extensions.xml
(开头部分) 38KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0" encoding="utf-8"?>
<doc>
<assembly>
<name>System.Reflection.Extensions</name>
</assembly>
<members>
<member name="T:System.Reflection.CustomAttributeExtensions">
<summary>包含检索自定义特性的静态方法。</summary>
</member>
<member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.Assembly)">
<summary>检索应用于指定程序集的指定类型的自定义特性。</summary>
<returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
<param name="element">要检查的程序集。</param>
<typeparam name="T">要搜索的特性类型。</typeparam>
<exception cref="T:System.ArgumentNullException">
<paramref name="element" /> 为 null。</exception>
<exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
</member>
<member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly,System.Type)">
<summary>检索应用于指定程序集的指定类型的自定义特性。</summary>
<returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
<param name="element">要检查的程序集。</param>
<param name="attributeType">要搜索的特性类型。</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
<exception cref="T:System.ArgumentException">
<paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
<exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
</member>
<member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.MemberInfo)">
<summary>检索应用于指定成员的指定类型的自定义特性。</summary>
<returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
<param name="element">要检查的成员。</param>
<typeparam name="T">要搜索的特性类型。</typeparam>
<exception cref="T:System.ArgumentNullException">
<paramref name="element" /> 为 null。</exception>
<exception cref="T:System.NotSupportedException">
<paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
<exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
<exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
</member>
<member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.MemberInfo,System.Boolean)">
<summary>检索应用于指定成员的指定类型的自定义特性,并可选择检查该成员的上级。</summary>
<returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
<param name="element">要检查的成员。</param>
<param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
<typeparam name="T">要搜索的特性类型。</typeparam>
<exception cref="T:System.ArgumentNullException">
<paramref name="element" /> 为 null。</exception>
<exception cref="T:System.NotSupportedException">
<paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
<exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
<exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
</member>
<member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.MemberInfo,System.Type)">
<summary>检索应用于指定成员的指定类型的自定义特性。</summary>
<returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
<param name="element">要检查的成员。</param>
<param name="attributeType">要搜索的特性类型。</param>
<exception cref="T:System.ArgumentNullException">
后面还有 432 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
