Skip to content
DocsTry Aspire
DocsTry

AttributeDataReader Methods

ClassMethods15 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.
GetAspireExportData(Type)Section titled GetAspireExportData(Type)staticnullableAspireExportData?
Gets AspireExportData from the specified type, if present.
public static class AttributeDataReader
{
public static AspireExportData? GetAspireExportData(
Type type)
{
// ...
}
}
typeType
GetAspireExportData(MethodInfo)Section titled GetAspireExportData(MethodInfo)staticnullableAspireExportData?
Gets AspireExportData from the specified method, if present.
public static class AttributeDataReader
{
public static AspireExportData? GetAspireExportData(
MethodInfo method)
{
// ...
}
}
methodMethodInfo
GetAspireExportData(PropertyInfo)Section titled GetAspireExportData(PropertyInfo)staticnullableAspireExportData?
Gets AspireExportData from the specified property, if present.
public static class AttributeDataReader
{
public static AspireExportData? GetAspireExportData(
PropertyInfo property)
{
// ...
}
}
propertyPropertyInfo
Gets all AspireExportData entries from the specified assembly.
public static class AttributeDataReader
{
public static IEnumerable<AspireExportData> GetAspireExportDataAll(
Assembly assembly)
{
// ...
}
}
assemblyAssembly
GetAspireUnionData(ParameterInfo)Section titled GetAspireUnionData(ParameterInfo)staticnullableAspireUnionData?
Gets AspireUnionData from the specified parameter, if present.
public static class AttributeDataReader
{
public static AspireUnionData? GetAspireUnionData(
ParameterInfo parameter)
{
// ...
}
}
parameterParameterInfo
GetAspireUnionData(PropertyInfo)Section titled GetAspireUnionData(PropertyInfo)staticnullableAspireUnionData?
Gets AspireUnionData from the specified property, if present.
public static class AttributeDataReader
{
public static AspireUnionData? GetAspireUnionData(
PropertyInfo property)
{
// ...
}
}
propertyPropertyInfo
GetAspireValueData(FieldInfo)Section titled GetAspireValueData(FieldInfo)staticnullableAspireValueData?
Gets AspireValueData from the specified field, if present.
public static class AttributeDataReader
{
public static AspireValueData? GetAspireValueData(
FieldInfo field)
{
// ...
}
}
fieldFieldInfo
GetAspireValueData(PropertyInfo)Section titled GetAspireValueData(PropertyInfo)staticnullableAspireValueData?
Gets AspireValueData from the specified property, if present.
public static class AttributeDataReader
{
public static AspireValueData? GetAspireValueData(
PropertyInfo property)
{
// ...
}
}
propertyPropertyInfo
GetObsoleteData(MethodInfo)Section titled GetObsoleteData(MethodInfo)staticnullableObsoleteData?
Gets ObsoleteData from the specified method, if present.
public static class AttributeDataReader
{
public static ObsoleteData? GetObsoleteData(
MethodInfo method)
{
// ...
}
}
methodMethodInfo
GetObsoleteData(PropertyInfo)Section titled GetObsoleteData(PropertyInfo)staticnullableObsoleteData?
Gets ObsoleteData from the specified property, if present.
public static class AttributeDataReader
{
public static ObsoleteData? GetObsoleteData(
PropertyInfo property)
{
// ...
}
}
propertyPropertyInfo
GetObsoleteData(Type)Section titled GetObsoleteData(Type)staticnullableObsoleteData?
Gets ObsoleteData from the specified type, if present.
public static class AttributeDataReader
{
public static ObsoleteData? GetObsoleteData(
Type type)
{
// ...
}
}
typeType
HasAspireDtoData(Type)Section titled HasAspireDtoData(Type)staticbool
Determines whether the specified type has the AspireDto attribute.
public static class AttributeDataReader
{
public static bool HasAspireDtoData(
Type type)
{
// ...
}
}
typeType
HasAspireExportIgnoreData(Type)Section titled HasAspireExportIgnoreData(Type)staticbool
Determines whether the specified type has the AspireExportIgnore attribute.
public static class AttributeDataReader
{
public static bool HasAspireExportIgnoreData(
Type type)
{
// ...
}
}
typeType
HasAspireExportIgnoreData(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)
{
// ...
}
}
propertyPropertyInfo
HasAspireExportIgnoreData(MethodInfo)Section titled HasAspireExportIgnoreData(MethodInfo)staticbool
Determines whether the specified method has the AspireExportIgnore attribute.
public static class AttributeDataReader
{
public static bool HasAspireExportIgnoreData(
MethodInfo method)
{
// ...
}
}
methodMethodInfo