CustomAttributeExtensions 類別

定義

包含擷取自訂屬性的靜態方法。Contains static methods for retrieving custom attributes.

public ref class CustomAttributeExtensions abstract sealed
public static class CustomAttributeExtensions
type CustomAttributeExtensions = class
Public Module CustomAttributeExtensions
繼承
CustomAttributeExtensions

方法

GetCustomAttribute(Assembly, Type)

擷取指定型別的自訂屬性,此屬性套用至指定組件。Retrieves a custom attribute of a specified type that is applied to a specified assembly.

GetCustomAttribute(MemberInfo, Type)

擷取指定型別的自訂屬性,此屬性套用至指定成員。Retrieves a custom attribute of a specified type that is applied to a specified member.

GetCustomAttribute(MemberInfo, Type, Boolean)

擷取只訂型別的自訂屬性,此屬性套用至指定成員,並且可選擇性檢查該成員的祖系。Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttribute(Module, Type)

擷取指定型別的自訂屬性,此屬性套用至指定模組。Retrieves a custom attribute of a specified type that is applied to a specified module.

GetCustomAttribute(ParameterInfo, Type)

擷取指定型別的自訂屬性,此屬性套用至指定參數。Retrieves a custom attribute of a specified type that is applied to a specified parameter.

GetCustomAttribute(ParameterInfo, Type, Boolean)

擷取只訂型別的自訂屬性,此屬性套用至指定參數,並且可選擇性檢查該參數的祖系。Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.

GetCustomAttribute<T>(Assembly)

擷取指定型別的自訂屬性,此屬性套用至指定組件。Retrieves a custom attribute of a specified type that is applied to a specified assembly.

GetCustomAttribute<T>(MemberInfo)

擷取指定型別的自訂屬性,此屬性套用至指定成員。Retrieves a custom attribute of a specified type that is applied to a specified member.

GetCustomAttribute<T>(MemberInfo, Boolean)

擷取只訂型別的自訂屬性,此屬性套用至指定成員,並且可選擇性檢查該成員的祖系。Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttribute<T>(Module)

擷取指定型別的自訂屬性,此屬性套用至指定模組。Retrieves a custom attribute of a specified type that is applied to a specified module.

GetCustomAttribute<T>(ParameterInfo)

擷取指定型別的自訂屬性,此屬性套用至指定參數。Retrieves a custom attribute of a specified type that is applied to a specified parameter.

GetCustomAttribute<T>(ParameterInfo, Boolean)

擷取只訂型別的自訂屬性,此屬性套用至指定參數,並且可選擇性檢查該參數的祖系。Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.

GetCustomAttributes(Assembly)

擷取套用至指定組件的自訂屬性集合。Retrieves a collection of custom attributes that are applied to a specified assembly.

GetCustomAttributes(Assembly, Type)

擷取指定型別的自訂屬性集合,此集合套用至指定組件。Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.

GetCustomAttributes(MemberInfo)

擷取套用至指定成員的自訂屬性集合。Retrieves a collection of custom attributes that are applied to a specified member.

GetCustomAttributes(MemberInfo, Boolean)

擷取自訂屬性集合,此集合套用至指定成員,並且可選擇性檢查該成員的祖系。Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttributes(MemberInfo, Type)

擷取指定型別的自訂屬性集合,此集合套用至指定成員。Retrieves a collection of custom attributes of a specified type that are applied to a specified member.

GetCustomAttributes(MemberInfo, Type, Boolean)

擷取指定型別的自訂屬性集合,此集合套用至指定成員,並且可選擇性檢查該成員的祖系。Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttributes(Module)

擷取套用至指定模組的自訂屬性集合。Retrieves a collection of custom attributes that are applied to a specified module.

GetCustomAttributes(Module, Type)

擷取指定型別的自訂屬性集合,此集合套用至指定模組。Retrieves a collection of custom attributes of a specified type that are applied to a specified module.

GetCustomAttributes(ParameterInfo)

擷取套用至指定參數的自訂屬性集合。Retrieves a collection of custom attributes that are applied to a specified parameter.

GetCustomAttributes(ParameterInfo, Boolean)

擷取自訂屬性集合,此集合套用至指定參數,並且可選擇性檢查該參數的祖系。Retrieves a collection of custom attributes that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.

GetCustomAttributes(ParameterInfo, Type)

擷取指定型別的自訂屬性集合,此集合套用至指定參數。Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.

GetCustomAttributes(ParameterInfo, Type, Boolean)

擷取指定型別的自訂屬性集合,此集合套用至指定參數,並且可選擇性檢查該參數的祖系。Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.

GetCustomAttributes<T>(Assembly)

擷取指定型別的自訂屬性集合,此集合套用至指定組件。Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.

GetCustomAttributes<T>(MemberInfo)

擷取指定型別的自訂屬性集合,此集合套用至指定成員。Retrieves a collection of custom attributes of a specified type that are applied to a specified member.

GetCustomAttributes<T>(MemberInfo, Boolean)

擷取指定型別的自訂屬性集合,此集合套用至指定成員,並且可選擇性檢查該成員的祖系。Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttributes<T>(Module)

擷取指定型別的自訂屬性集合,此集合套用至指定模組。Retrieves a collection of custom attributes of a specified type that are applied to a specified module.

GetCustomAttributes<T>(ParameterInfo)

擷取指定型別的自訂屬性集合,此集合套用至指定參數。Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.

GetCustomAttributes<T>(ParameterInfo, Boolean)

擷取指定型別的自訂屬性集合,此集合套用至指定參數,並且可選擇性檢查該參數的祖系。Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.

IsDefined(Assembly, Type)

指出是否將所指定型別的自訂屬性套用至指定的組件。Indicates whether custom attributes of a specified type are applied to a specified assembly.

IsDefined(MemberInfo, Type)

指出是否將所指定型別的自訂屬性套用至指定的成員。Indicates whether custom attributes of a specified type are applied to a specified member.

IsDefined(MemberInfo, Type, Boolean)

指出指定之型別的自訂屬性是否會套用至指定的成員,以及選擇性地套用到其上階。Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.

IsDefined(Module, Type)

指出是否將所指定型別的自訂屬性套用至指定的模組。Indicates whether custom attributes of a specified type are applied to a specified module.

IsDefined(ParameterInfo, Type)

指出是否將所指定型別的自訂屬性套用至指定的參數。Indicates whether custom attributes of a specified type are applied to a specified parameter.

IsDefined(ParameterInfo, Type, Boolean)

指出指定之型別的自訂屬性是否會套用至指定的參數,以及選擇性地套用到其上階。Indicates whether custom attributes of a specified type are applied to a specified parameter, and, optionally, applied to its ancestors.

適用於