1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Reflection.Extensions</name>
7 <member name="T:System.Reflection.CustomAttributeExtensions">
8 <summary>包含检索自定义特性的静态方法。</summary>
10 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.Assembly)">
11 <summary>检索应用于指定程序集的指定类型的自定义特性。</summary>
12 <returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
13 <param name="element">要检查的程序集。</param>
14 <typeparam name="T">要搜索的特性类型。</typeparam>
15 <exception cref="T:System.ArgumentNullException">
16 <paramref name="element" /> 为 null。</exception>
17 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
19 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly,System.Type)">
20 <summary>检索应用于指定程序集的指定类型的自定义特性。</summary>
21 <returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
22 <param name="element">要检查的程序集。</param>
23 <param name="attributeType">要搜索的特性类型。</param>
24 <exception cref="T:System.ArgumentNullException">
25 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
26 <exception cref="T:System.ArgumentException">
27 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
28 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
30 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.MemberInfo)">
31 <summary>检索应用于指定成员的指定类型的自定义特性。</summary>
32 <returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
33 <param name="element">要检查的成员。</param>
34 <typeparam name="T">要搜索的特性类型。</typeparam>
35 <exception cref="T:System.ArgumentNullException">
36 <paramref name="element" /> 为 null。</exception>
37 <exception cref="T:System.NotSupportedException">
38 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
39 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
40 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
42 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.MemberInfo,System.Boolean)">
43 <summary>检索应用于指定成员的指定类型的自定义特性,并可选择检查该成员的上级。</summary>
44 <returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
45 <param name="element">要检查的成员。</param>
46 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
47 <typeparam name="T">要搜索的特性类型。</typeparam>
48 <exception cref="T:System.ArgumentNullException">
49 <paramref name="element" /> 为 null。</exception>
50 <exception cref="T:System.NotSupportedException">
51 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
52 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
53 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
55 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.MemberInfo,System.Type)">
56 <summary>检索应用于指定成员的指定类型的自定义特性。</summary>
57 <returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
58 <param name="element">要检查的成员。</param>
59 <param name="attributeType">要搜索的特性类型。</param>
60 <exception cref="T:System.ArgumentNullException">
61 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
62 <exception cref="T:System.ArgumentException">
63 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
64 <exception cref="T:System.NotSupportedException">
65 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
66 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
67 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
69 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean)">
70 <summary>检索应用于指定成员的指定类型的自定义特性,并可选择检查该成员的上级。</summary>
71 <returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
72 <param name="element">要检查的成员。</param>
73 <param name="attributeType">要搜索的特性类型。</param>
74 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
75 <exception cref="T:System.ArgumentNullException">
76 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
77 <exception cref="T:System.ArgumentException">
78 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
79 <exception cref="T:System.NotSupportedException">
80 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
81 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
82 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
84 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.Module)">
85 <summary>检索应用于指定模块的指定类型的自定义特性。</summary>
86 <returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
87 <param name="element">要检查的模块。</param>
88 <typeparam name="T">要搜索的特性类型。</typeparam>
89 <exception cref="T:System.ArgumentNullException">
90 <paramref name="element" /> 为 null。</exception>
91 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
93 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Module,System.Type)">
94 <summary>检索应用于指定模块的指定类型的自定义特性。</summary>
95 <returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
96 <param name="element">要检查的模块。</param>
97 <param name="attributeType">要搜索的特性类型。</param>
98 <exception cref="T:System.ArgumentNullException">
99 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
100 <exception cref="T:System.ArgumentException">
101 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
102 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
104 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.ParameterInfo)">
105 <summary>检索应用于指定参数的指定类型的自定义特性。</summary>
106 <returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
107 <param name="element">要检查的参数。</param>
108 <typeparam name="T">要搜索的特性类型。</typeparam>
109 <exception cref="T:System.ArgumentNullException">
110 <paramref name="element" /> 为 null。</exception>
111 <exception cref="T:System.NotSupportedException">
112 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
113 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
114 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
116 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute``1(System.Reflection.ParameterInfo,System.Boolean)">
117 <summary>检索应用于指定参数的指定类型的自定义特性,并可选择检查该参数的上级。</summary>
118 <returns>与 <paramref name="T" /> 相匹配的自定义属性;否则,如果没有找到这类属性,则为 null。</returns>
119 <param name="element">要检查的参数。</param>
120 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
121 <typeparam name="T">要搜索的特性类型。</typeparam>
122 <exception cref="T:System.ArgumentNullException">
123 <paramref name="element" /> 为 null。</exception>
124 <exception cref="T:System.NotSupportedException">
125 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
126 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
127 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
129 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type)">
130 <summary>检索应用于指定参数的指定类型的自定义特性。</summary>
131 <returns>与 <paramref name="attributeType" /> 匹配的自定义特性,如果未找到此类特性,则为 null。</returns>
132 <param name="element">要检查的参数。</param>
133 <param name="attributeType">要搜索的特性类型。</param>
134 <exception cref="T:System.ArgumentNullException">
135 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
136 <exception cref="T:System.ArgumentException">
137 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
138 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
139 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
141 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type,System.Boolean)">
142 <summary>检索应用于指定参数的指定类型的自定义特性,并可选择检查该参数的上级。</summary>
143 <returns>匹配 <paramref name="attributeType" /> 的自定义特性,如果未找到此类特性,则为 null。</returns>
144 <param name="element">要检查的参数。</param>
145 <param name="attributeType">要搜索的特性类型。</param>
146 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
147 <exception cref="T:System.ArgumentNullException">
148 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
149 <exception cref="T:System.ArgumentException">
150 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
151 <exception cref="T:System.Reflection.AmbiguousMatchException">找到多个请求的属性。</exception>
152 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
154 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes``1(System.Reflection.Assembly)">
155 <summary>检索应用于指定程序集的指定类型的自定义特性集合</summary>
156 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="T" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
157 <param name="element">要检查的程序集。</param>
158 <typeparam name="T">要搜索的特性类型。</typeparam>
159 <exception cref="T:System.ArgumentNullException">
160 <paramref name="element" /> 为 null。</exception>
162 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.Assembly)">
163 <summary>检索应用于指定程序集的自定义特性集合。</summary>
164 <returns>将应用于 <paramref name="element" /> 的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
165 <param name="element">要检查的程序集。</param>
166 <exception cref="T:System.ArgumentNullException">
167 <paramref name="element" /> 为 null。</exception>
169 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.Assembly,System.Type)">
170 <summary>检索应用于指定程序集的指定类型的自定义特性集合</summary>
171 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="attributeType" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
172 <param name="element">要检查的程序集。</param>
173 <param name="attributeType">要搜索的特性类型。</param>
174 <exception cref="T:System.ArgumentNullException">
175 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
176 <exception cref="T:System.ArgumentException">
177 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
179 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.MemberInfo)">
180 <summary>检索应用于指定成员的自定义特性集合。</summary>
181 <returns>将应用于 <paramref name="element" /> 的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
182 <param name="element">要检查的成员。</param>
183 <exception cref="T:System.ArgumentNullException">
184 <paramref name="element" /> 为 null。</exception>
185 <exception cref="T:System.NotSupportedException">
186 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
187 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
189 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes``1(System.Reflection.MemberInfo)">
190 <summary>检索应用于指定成员的指定类型的自定义特性集合。</summary>
191 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="T" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
192 <param name="element">要检查的成员。</param>
193 <typeparam name="T">要搜索的特性类型。</typeparam>
194 <exception cref="T:System.ArgumentNullException">
195 <paramref name="element" /> 为 null。</exception>
196 <exception cref="T:System.NotSupportedException">
197 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
198 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
200 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes``1(System.Reflection.MemberInfo,System.Boolean)">
201 <summary>检索应用于指定成员的指定类型的自定义特性集合,并可选择检查该成员的上级。</summary>
202 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="T" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
203 <param name="element">要检查的成员。</param>
204 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
205 <typeparam name="T">要搜索的特性类型。</typeparam>
206 <exception cref="T:System.ArgumentNullException">
207 <paramref name="element" /> 为 null。</exception>
208 <exception cref="T:System.NotSupportedException">
209 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
210 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
212 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean)">
213 <summary>检索应用于指定成员的自定义特性集合,并可选择检查该成员的上级。</summary>
214 <returns>将应用于与指定的条件匹配的 <paramref name="element" /> 的自定义特性的集合,如果此类特性不存在,则为空集。</returns>
215 <param name="element">要检查的成员。</param>
216 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
217 <exception cref="T:System.ArgumentNullException">
218 <paramref name="element" /> 为 null。</exception>
219 <exception cref="T:System.NotSupportedException">
220 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
221 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
223 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.MemberInfo,System.Type)">
224 <summary>检索应用于指定成员的指定类型的自定义特性集合。</summary>
225 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="attributeType" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
226 <param name="element">要检查的成员。</param>
227 <param name="attributeType">要搜索的特性类型。</param>
228 <exception cref="T:System.ArgumentNullException">
229 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
230 <exception cref="T:System.ArgumentException">
231 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
232 <exception cref="T:System.NotSupportedException">
233 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
234 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
236 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean)">
237 <summary>检索应用于指定成员的指定类型的自定义特性集合,并可选择检查该成员的上级。</summary>
238 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="attributeType" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
239 <param name="element">要检查的成员。</param>
240 <param name="attributeType">要搜索的特性类型。</param>
241 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
242 <exception cref="T:System.ArgumentNullException">
243 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
244 <exception cref="T:System.ArgumentException">
245 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
246 <exception cref="T:System.NotSupportedException">
247 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
248 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
250 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.Module)">
251 <summary>检索应用于指定模块的自定义特性集合。</summary>
252 <returns>将应用于 <paramref name="element" /> 的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
253 <param name="element">要检查的模块。</param>
254 <exception cref="T:System.ArgumentNullException">
255 <paramref name="element" /> 为 null。</exception>
257 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes``1(System.Reflection.Module)">
258 <summary>检索应用于指定模块的指定类型的自定义特性集合。</summary>
259 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="T" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
260 <param name="element">要检查的模块。</param>
261 <typeparam name="T">要搜索的特性类型。</typeparam>
262 <exception cref="T:System.ArgumentNullException">
263 <paramref name="element" /> 为 null。</exception>
265 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.Module,System.Type)">
266 <summary>检索应用于指定模块的指定类型的自定义特性集合。</summary>
267 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="attributeType" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
268 <param name="element">要检查的模块。</param>
269 <param name="attributeType">要搜索的特性类型。</param>
270 <exception cref="T:System.ArgumentNullException">
271 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
272 <exception cref="T:System.ArgumentException">
273 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
275 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.ParameterInfo)">
276 <summary>检索应用于指定参数的自定义特性的集合。</summary>
277 <returns>将应用于 <paramref name="element" /> 的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
278 <param name="element">要检查的参数。</param>
279 <exception cref="T:System.ArgumentNullException">
280 <paramref name="element" /> 为 null。</exception>
281 <exception cref="T:System.NotSupportedException">
282 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
283 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
285 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes``1(System.Reflection.ParameterInfo)">
286 <summary>检索应用于指定参数的指定类型的自定义特性集合。</summary>
287 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="T" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
288 <param name="element">要检查的参数。</param>
289 <typeparam name="T">要搜索的特性类型。</typeparam>
290 <exception cref="T:System.ArgumentNullException">
291 <paramref name="element" /> 为 null。</exception>
292 <exception cref="T:System.NotSupportedException">
293 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
294 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
296 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean)">
297 <summary>检索应用于指定参数的自定义特性集合,并可选择检查该参数的上级。</summary>
298 <returns>将应用于 <paramref name="element" /> 的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
299 <param name="element">要检查的参数。</param>
300 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
301 <exception cref="T:System.ArgumentNullException">
302 <paramref name="element" /> 为 null。</exception>
303 <exception cref="T:System.NotSupportedException">
304 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
305 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
307 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes``1(System.Reflection.ParameterInfo,System.Boolean)">
308 <summary>检索应用于指定参数的指定类型的自定义特性集合,并可选择检查该参数的上级。</summary>
309 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="T" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
310 <param name="element">要检查的参数。</param>
311 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
312 <typeparam name="T">要搜索的特性类型。</typeparam>
313 <exception cref="T:System.ArgumentNullException">
314 <paramref name="element" /> 为 null。</exception>
315 <exception cref="T:System.NotSupportedException">
316 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
317 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
319 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type)">
320 <summary>检索应用于指定参数的指定类型的自定义特性集合。</summary>
321 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="attributeType" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
322 <param name="element">要检查的参数。</param>
323 <param name="attributeType">要搜索的特性类型。</param>
324 <exception cref="T:System.ArgumentNullException">
325 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
326 <exception cref="T:System.ArgumentException">
327 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
328 <exception cref="T:System.NotSupportedException">
329 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
330 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
332 <member name="M:System.Reflection.CustomAttributeExtensions.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean)">
333 <summary>检索应用于指定参数的指定类型的自定义特性集合,并可选择检查该参数的上级。</summary>
334 <returns>将应用于与 <paramref name="element" /> 并与 <paramref name="attributeType" /> 匹配的自定义特性的集合,如果此类特性不存在,则为空集合。</returns>
335 <param name="element">要检查的参数。</param>
336 <param name="attributeType">要搜索的特性类型。</param>
337 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
338 <exception cref="T:System.ArgumentNullException">
339 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
340 <exception cref="T:System.ArgumentException">
341 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
342 <exception cref="T:System.NotSupportedException">
343 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
344 <exception cref="T:System.TypeLoadException">无法加载自定义特性类型。</exception>
346 <member name="M:System.Reflection.CustomAttributeExtensions.IsDefined(System.Reflection.Assembly,System.Type)">
347 <summary>确定是否将指定类型的任何自定义属性应用于指定的程序集。</summary>
348 <returns>如果将指定类型的特性应用于 <paramref name="element" />,则为 true;否则为 false。</returns>
349 <param name="element">要检查的程序集。</param>
350 <param name="attributeType">要搜索的特性类型。</param>
351 <exception cref="T:System.ArgumentNullException">
352 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
353 <exception cref="T:System.ArgumentException">
354 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
356 <member name="M:System.Reflection.CustomAttributeExtensions.IsDefined(System.Reflection.MemberInfo,System.Type)">
357 <summary>确定是否将指定类型的任何自定义属性应用于指定的成员。</summary>
358 <returns>如果将指定类型的特性应用于 <paramref name="element" />,则为 true;否则为 false。</returns>
359 <param name="element">要检查的成员。</param>
360 <param name="attributeType">要搜索的特性类型。</param>
361 <exception cref="T:System.ArgumentNullException">
362 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
363 <exception cref="T:System.ArgumentException">
364 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
365 <exception cref="T:System.NotSupportedException">
366 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
368 <member name="M:System.Reflection.CustomAttributeExtensions.IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean)">
369 <summary>指示一个指定类型的自定义特性是否应用于一个指定的数字,并选择性地应用于其的上级。</summary>
370 <returns>如果将指定类型的特性应用于 <paramref name="element" />,则为 true;否则为 false。</returns>
371 <param name="element">要检查的成员。</param>
372 <param name="attributeType">要搜索的特性类型。</param>
373 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
374 <exception cref="T:System.ArgumentNullException">
375 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
376 <exception cref="T:System.ArgumentException">
377 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
378 <exception cref="T:System.NotSupportedException">
379 <paramref name="element" /> 不是构造函数、方法、属性、事件、类型或字段。</exception>
381 <member name="M:System.Reflection.CustomAttributeExtensions.IsDefined(System.Reflection.Module,System.Type)">
382 <summary>确定是否将指定类型的任何自定义属性应用于指定的模块。</summary>
383 <returns>如果将指定类型的特性应用于 <paramref name="element" />,则为 true;否则为 false。</returns>
384 <param name="element">要检查的模块。</param>
385 <param name="attributeType">要搜索的特性类型。</param>
386 <exception cref="T:System.ArgumentNullException">
387 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
388 <exception cref="T:System.ArgumentException">
389 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
391 <member name="M:System.Reflection.CustomAttributeExtensions.IsDefined(System.Reflection.ParameterInfo,System.Type)">
392 <summary>确定是否将指定类型的任何自定义属性应用于指定的参数。</summary>
393 <returns>如果将指定类型的特性应用于 <paramref name="element" />,则为 true;否则为 false。</returns>
394 <param name="element">要检查的参数。</param>
395 <param name="attributeType">要搜索的特性类型。</param>
396 <exception cref="T:System.ArgumentNullException">
397 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
398 <exception cref="T:System.ArgumentException">
399 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
401 <member name="M:System.Reflection.CustomAttributeExtensions.IsDefined(System.Reflection.ParameterInfo,System.Type,System.Boolean)">
402 <summary>指示一个指定类型的自定义特性是否应用于一个指定的参数,并选择性地应用于其的上级。</summary>
403 <returns>如果将指定类型的特性应用于 <paramref name="element" />,则为 true;否则为 false。</returns>
404 <param name="element">要检查的参数。</param>
405 <param name="attributeType">要搜索的特性类型。</param>
406 <param name="inherit">如果检查 <paramref name="element" /> 的上级,则为 true;否则为 false。</param>
407 <exception cref="T:System.ArgumentNullException">
408 <paramref name="element" /> 或 <paramref name="attributeType" /> 为 null。</exception>
409 <exception cref="T:System.ArgumentException">
410 <paramref name="attributeType" /> 不从 <see cref="T:System.Attribute" /> 派生。</exception>
412 <member name="T:System.Reflection.InterfaceMapping">
413 <summary>将某个接口的映射检索到实现该接口的类上的实际方法中。</summary>
415 <member name="F:System.Reflection.InterfaceMapping.InterfaceMethods">
416 <summary>显示在接口上定义的方法。</summary>
418 <member name="F:System.Reflection.InterfaceMapping.InterfaceType">
419 <summary>显示表示接口的类型。</summary>
421 <member name="F:System.Reflection.InterfaceMapping.TargetMethods">
422 <summary>显示实现接口的方法。</summary>
424 <member name="F:System.Reflection.InterfaceMapping.TargetType">
425 <summary>表示用于创建接口映射的类型。</summary>
427 <member name="T:System.Reflection.RuntimeReflectionExtensions">
428 <summary>提供检索有关运行时类型的信息的方法。</summary>
430 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetMethodInfo(System.Delegate)">
431 <summary>获取指示指定委托表示的方法的对象。</summary>
432 <returns>表示该方法的对象。</returns>
433 <param name="del">要检查的委托。</param>
435 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeBaseDefinition(System.Reflection.MethodInfo)">
436 <summary>检索表示在此方法最先声明的直接或间接类上的指定方法的对象。</summary>
437 <returns>表示在基类中指定的方法的初始声明的对象。</returns>
438 <param name="method">关于检索信息的方法。</param>
440 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeEvent(System.Type,System.String)">
441 <summary>检索一个表示指定事件的对象。</summary>
442 <returns>表示指定事件的对象,若未找到该事件则为 null。</returns>
443 <param name="type">包含该事件的类型。</param>
444 <param name="name">事件的名称。</param>
446 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeEvents(System.Type)">
447 <summary>检索表示指定类型定义的所有事件的集合。</summary>
448 <returns>指定类型的事件集合。</returns>
449 <param name="type">包含该事件的类型。</param>
451 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeField(System.Type,System.String)">
452 <summary>检索表示指定字段的对象。</summary>
453 <returns>表示指定字段的对象,若未找到该字段则为 null。</returns>
454 <param name="type">包含字段的类型。</param>
455 <param name="name">字段名。</param>
457 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeFields(System.Type)">
458 <summary>检索表示指定类型定义的所有字段的集合。</summary>
459 <returns>指定类型的字段集合。</returns>
460 <param name="type">包含字段的类型。</param>
462 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeInterfaceMap(System.Reflection.TypeInfo,System.Type)">
463 <summary>返回指定类型和指定接口的接口映射。</summary>
464 <returns>表示指定接口和类型的接口映射的对象。</returns>
465 <param name="typeInfo">要检索其映射的类型。</param>
466 <param name="interfaceType">要检索其映射的接口。</param>
468 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeMethod(System.Type,System.String,System.Type[])">
469 <summary>检索表示指定方法的对象。</summary>
470 <returns>表示指定方法的对象,若未找到该方法则为 null。</returns>
471 <param name="type">包含方法的类型。</param>
472 <param name="name">方法的名称。</param>
473 <param name="parameters">包含方法的参数的数组。</param>
475 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeMethods(System.Type)">
476 <summary>检索表示指定类型定义的所有方法的集合。</summary>
477 <returns>指定类型的方法集合。</returns>
478 <param name="type">包含方法的类型。</param>
480 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties(System.Type)">
481 <summary>检索表示指定类型定义的所有属性的集合。</summary>
482 <returns>指定类型的属性集合。</returns>
483 <param name="type">包含属性的类型。</param>
485 <member name="M:System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperty(System.Type,System.String)">
486 <summary>检索表示指定属性的对象。</summary>
487 <returns>表示指定属性的对象,若未找到该属性则为 null。</returns>
488 <param name="type">包含该属性的类型。</param>
489 <param name="name">属性的名称。</param>