AttributeDataReader Methods
ClassMethods18 members
Provides full-name-based discovery of ATS attributes from
Reflection.CustomAttributeData , so that third-party authors can define their own attribute types with the same full name without requiring a package reference to Aspire.Hosting. Gets
AspireExportData from the specified type, if present. public static class AttributeDataReader{ public static AspireExportData? GetAspireExportData( Type type) { // ... }}Parameters
typeTypeGetAspireExportData(MethodInfo) Section titled GetAspireExportData(MethodInfo)staticnullableAspire Gets
AspireExportData from the specified method, if present. public static class AttributeDataReader{ public static AspireExportData? GetAspireExportData( MethodInfo method) { // ... }}Parameters
methodMethodInfo GetAspireExportData(PropertyInfo) Section titled GetAspireExportData(PropertyInfo)staticnullableAspire Gets
AspireExportData from the specified property, if present. public static class AttributeDataReader{ public static AspireExportData? GetAspireExportData( PropertyInfo property) { // ... }}Parameters
propertyPropertyInfo GetAspireExportDataAll(Assembly) Section titled GetAspireExportDataAll(Assembly)staticI Gets all
AspireExportData entries from the specified assembly. public static class AttributeDataReader{ public static IEnumerable<AspireExportData> GetAspireExportDataAll( Assembly assembly) { // ... }}Parameters
assemblyAssemblyGetAspireUnionData(ParameterInfo) Section titled GetAspireUnionData(ParameterInfo)staticnullableAspire Gets
AspireUnionData from the specified parameter, if present. public static class AttributeDataReader{ public static AspireUnionData? GetAspireUnionData( ParameterInfo parameter) { // ... }}Parameters
parameterParameterInfo GetAspireUnionData(PropertyInfo) Section titled GetAspireUnionData(PropertyInfo)staticnullableAspire Gets
AspireUnionData from the specified property, if present. public static class AttributeDataReader{ public static AspireUnionData? GetAspireUnionData( PropertyInfo property) { // ... }}Parameters
propertyPropertyInfo GetAspireValueData(FieldInfo) Section titled GetAspireValueData(FieldInfo)staticnullableAspire Gets
AspireValueData from the specified field, if present. public static class AttributeDataReader{ public static AspireValueData? GetAspireValueData( FieldInfo field) { // ... }}Parameters
fieldFieldInfo GetAspireValueData(PropertyInfo) Section titled GetAspireValueData(PropertyInfo)staticnullableAspire Gets
AspireValueData from the specified property, if present. public static class AttributeDataReader{ public static AspireValueData? GetAspireValueData( PropertyInfo property) { // ... }}Parameters
propertyPropertyInfo Gets
ObsoleteData from the specified method, if present. public static class AttributeDataReader{ public static ObsoleteData? GetObsoleteData( MethodInfo method) { // ... }}Parameters
methodMethodInfo GetObsoleteData(PropertyInfo) Section titled GetObsoleteData(PropertyInfo)staticnullableObsolete Gets
ObsoleteData from the specified property, if present. public static class AttributeDataReader{ public static ObsoleteData? GetObsoleteData( PropertyInfo property) { // ... }}Parameters
propertyPropertyInfo Gets
ObsoleteData from the specified field, if present. public static class AttributeDataReader{ public static ObsoleteData? GetObsoleteData( FieldInfo field) { // ... }}Parameters
fieldFieldInfo Gets
ObsoleteData from the specified type, if present. public static class AttributeDataReader{ public static ObsoleteData? GetObsoleteData( Type type) { // ... }}Parameters
typeType Determines whether the specified
type has the AspireDto attribute. public static class AttributeDataReader{ public static bool HasAspireDtoData( Type type) { // ... }}Parameters
typeType Determines whether the specified
type has the AspireExportIgnore attribute. public static class AttributeDataReader{ public static bool HasAspireExportIgnoreData( Type type) { // ... }}Parameters
typeTypeHasAspireExportIgnoreData(PropertyInfo) Section titled HasAspireExportIgnoreData(PropertyInfo)staticbool Determines whether the specified
property has the AspireExportIgnore attribute. public static class AttributeDataReader{ public static bool HasAspireExportIgnoreData( PropertyInfo property) { // ... }}Parameters
propertyPropertyInfo Determines whether the specified
method has the AspireExportIgnore attribute. public static class AttributeDataReader{ public static bool HasAspireExportIgnoreData( MethodInfo method) { // ... }}Parameters
methodMethodInfo Determines whether the specified method, any of its declaring types, its module, or its assembly has the
ExperimentalAttribute . public static class AttributeDataReader{ public static bool HasExperimentalData( MethodInfo method) { // ... }}Parameters
methodMethodInfo The method whose experimental scope is inspected.Returns
booltrue if the method is in an experimental scope; otherwise, false. Determines whether the specified property or any of its accessors is in an experimental scope.
public static class AttributeDataReader{ public static bool HasExperimentalData( PropertyInfo property) { // ... }}Parameters
propertyPropertyInfo The property whose experimental scope is inspected.Returns
booltrue if the property is in an experimental scope; otherwise, false.