HasAttribute
HasAttribute(Assembly, Type)
public static bool HasAttribute(Assembly assembly, Type targetType) ;
説明
Attributeがあるかどうか。
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| assembly | Assembly | 
| targetType | 取得する型 | 
戻り値
Attributeがあるかどうか。
HasAttribute<T>(Assembly)
public static bool HasAttribute<T>(Assembly assembly) ;
説明
Attributeがあるかどうか。
型パラメーター
| 型パラメーター名 | 説明 | 型制約 | 
|---|---|---|
| T | 取得する型 | 
 | 
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| assembly | Assembly | 
戻り値
Attributeがあるかどうか。
HasAttribute(MemberInfo, Type)
public static bool HasAttribute(MemberInfo member, Type targetType) ;
説明
Attributeがあるかどうか。
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| member | MemberInfo | 
| targetType | 取得する型 | 
戻り値
Attributeがあるかどうか。
HasAttribute(Type, Type)
public static bool HasAttribute(Type type, Type targetType) ;
説明
Attributeがあるかどうか。
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| type | Type | 
| targetType | 取得する型 | 
戻り値
Attributeがあるかどうか。
HasAttribute<T>(MemberInfo)
public static bool HasAttribute<T>(MemberInfo member) ;
説明
Attributeがあるかどうか。
型パラメーター
| 型パラメーター名 | 説明 | 型制約 | 
|---|---|---|
| T | 取得する型 | 
 | 
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| member | MemberInfo | 
戻り値
Attributeがあるかどうか。
HasAttribute<T>(Type)
public static bool HasAttribute<T>(Type type) ;
説明
Attributeがあるかどうか。
型パラメーター
| 型パラメーター名 | 説明 | 型制約 | 
|---|---|---|
| T | 取得する型 | 
 | 
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| type | Type | 
戻り値
Attributeがあるかどうか。