Implemented interface member:
method
GetCustomAttributes
System.Reflection.ICustomAttributeProvider.GetCustomAttributes(System.Boolean)
48 overrides of GetCustomAttributes
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
90public override object[] GetCustomAttributes(bool inherit)
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
42public override object[] GetCustomAttributes(bool inherit) { return _ctor.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
362public override object[] GetCustomAttributes(bool inherit)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
49public override object[] GetCustomAttributes(bool inherit) { return _field.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
55public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
540public override object[] GetCustomAttributes(bool inherit)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
265public override object[] GetCustomAttributes(bool inherit) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
196public override object[] GetCustomAttributes(bool inherit) => _unmodifiedType.GetCustomAttributes(inherit);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
171public sealed override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
168public override object[] GetCustomAttributes(bool inherit) => typeImpl.GetCustomAttributes(inherit);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
53public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (1)
107public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
265public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (1)
113public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
210public override object[] GetCustomAttributes(bool inherit) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
482public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
175public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
981public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\Emit\SymbolMethod.cs (1)
117public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
129public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\RuntimeEventInfo.cs (1)
89public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\RuntimeFieldInfo.cs (1)
60public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
172public override object[] GetCustomAttributes(bool inherit)
src\System\Reflection\RuntimePropertyInfo.cs (1)
137public override object[] GetCustomAttributes(bool inherit)
System.Reflection.Context (8)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
96public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
90public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
81public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
118public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
111public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
205public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
102public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
161public override object[] GetCustomAttributes(bool inherit)
System.Reflection.Emit (3)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
540public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Emit\ArrayMethod.cs (1)
83public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SymbolMethod);
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
37public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
78public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
142public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
45public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
167public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Types\RoType.cs (1)
373public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_ReflectionOnlyCA);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
81public override object[] GetCustomAttributes(bool inherit)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
39public override object[] GetCustomAttributes(bool inherit) => m_field.GetCustomAttributes(inherit);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
814public override object[] GetCustomAttributes(bool inherit)
System.Xaml.Tests (3)
Common\CustomConstructorInfo.cs (1)
62public override object[] GetCustomAttributes(bool inherit)
Common\CustomMethodInfo.cs (1)
60public override object[] GetCustomAttributes(bool inherit)
System\Xaml\XamlMemberTests.cs (1)
2395public override object[] GetCustomAttributes(bool inherit)
74 references to GetCustomAttributes
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
181return new SoapAttributes(type.GetTypeInfo().GetCustomAttributes(false) as Attribute[]); 188return new SoapAttributes(memberInfo.GetCustomAttributes(false) as Attribute[]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1312var customAttribs = enumerator.GetCustomAttributes(false) as Attribute[];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
255var customAttribs = memberInfo.GetCustomAttributes(false) as Attribute[];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\CustomAttributeProvider.cs (3)
65return this.Type.GetTypeInfo().GetCustomAttributes(inherit).ToArray(); 67return this.MethodInfo.GetCustomAttributes(inherit).ToArray(); 69return this.MemberInfo.GetCustomAttributes(inherit).ToArray();
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
27var allAttributes = type.GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.Components.Endpoints (1)
Discovery\PageCollectionBuilder.cs (1)
85var attributes = componentType.GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Binding\ReflectionServiceInvokerResolver.cs (2)
39metadata.AddRange(typeof(TService).GetCustomAttributes(inherit: true)); 41metadata.AddRange(handlerMethod.GetCustomAttributes(inherit: true));
Microsoft.AspNetCore.Http.Connections (1)
ConnectionEndpointRouteBuilderExtensions.cs (1)
61var attributes = typeof(TConnectionHandler).GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.Http.Extensions (2)
src\Shared\PropertyAsParameterInfo.cs (2)
164return _underlyingProperty.GetCustomAttributes(inherit); 167var propertyAttributes = _underlyingProperty.GetCustomAttributes(inherit);
Microsoft.AspNetCore.InternalTesting (2)
xunit\AspNetTestInvoker.cs (2)
64foreach (var attribute in testMethod.GetCustomAttributes(inherit: true).OfType<ITestMethodLifecycle>()) 74foreach (var attribute in testClass.GetCustomAttributes(inherit: true).OfType<ITestMethodLifecycle>())
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
src\Shared\PropertyAsParameterInfo.cs (2)
164return _underlyingProperty.GetCustomAttributes(inherit); 167var propertyAttributes = _underlyingProperty.GetCustomAttributes(inherit);
Microsoft.AspNetCore.Mvc.Core (8)
ApiConventionTypeAttribute.cs (1)
63var unsupportedAttributes = method.GetCustomAttributes(inherit: true)
ApiExplorer\ApiConventionResult.cs (1)
44var metadataProviders = conventionMethod.GetCustomAttributes(inherit: false)
ApplicationModels\DefaultApplicationModelProvider.cs (5)
125.GetCustomAttributes(inherit: false) 139var attributes = typeInfo.GetCustomAttributes(inherit: true); 215var attributes = propertyInfo.GetCustomAttributes(inherit: true); 268var attributes = methodInfo.GetCustomAttributes(inherit: true); 315.GetCustomAttributes(inherit: false)
ModelBinding\Metadata\DefaultValidationMetadataProvider.cs (1)
46.GetCustomAttributes(inherit: true)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApiConventionMethodAttributeTest.cs (1)
64var attributes = method.GetCustomAttributes(false);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
DataAnnotationsMetadataProviderTest.cs (4)
1586var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1602var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1619var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1638var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
84public override IReadOnlyList<object> Metadata => Type.GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (2)
49method.GetCustomAttributes(inherit: true)) 108var propertyAttributes = property.GetCustomAttributes(inherit: true);
ApplicationModels\DefaultPageApplicationModelProvider.cs (3)
89var pageTypeAttributes = pageTypeInfo.GetCustomAttributes(inherit: true); 98handlerTypeAttributes = modelTypeInfo.GetCustomAttributes(inherit: true).Concat(pageTypeAttributes).ToArray(); 103handlerTypeAttributes = pageTypeInfo.GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (5)
1092var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1109var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1134var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1165var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1201var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
Microsoft.AspNetCore.OpenApi (2)
src\Shared\PropertyAsParameterInfo.cs (2)
164return _underlyingProperty.GetCustomAttributes(inherit); 167var propertyAttributes = _underlyingProperty.GetCustomAttributes(inherit);
Microsoft.AspNetCore.Razor.Runtime (1)
Hosting\DefaultRazorCompiledItem.cs (1)
31_metadata = Type.GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.SignalR (1)
HubEndpointRouteBuilderExtensions.cs (1)
57var attributes = typeof(THub).GetCustomAttributes(inherit: true);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
SuggestedActions\SuggestedActionSourceProviderTests.cs (1)
20var attributes = typeof(SuggestedActionsSourceProvider).GetCustomAttributes(inherit: false)
Microsoft.CodeAnalysis.Workspaces (1)
Log\RoslynEventSource.cs (1)
124var goal = (from attr in function.GetCustomAttributes(false)
Microsoft.ML.Data (1)
Data\DataViewTypeManager.cs (1)
267/// <see cref="MemberInfo.GetCustomAttributes(bool)"/>.
PresentationFramework (2)
MS\Internal\Annotations\Serializer.cs (1)
43object[] attributes = type.GetCustomAttributes(false);
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
359return UnderlyingType.GetCustomAttributes(inherit);
System.Configuration.ConfigurationManager (3)
System\Configuration\ApplicationSettingsBase.cs (3)
443object[] attributes = propertyInfo.GetCustomAttributes(false); 552_classAttributes = type.GetCustomAttributes(false); 721attributes = allProps[i].GetCustomAttributes(false);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
42public override object[] GetCustomAttributes(bool inherit) { return _ctor.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
49public override object[] GetCustomAttributes(bool inherit) { return _field.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
55public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
196public override object[] GetCustomAttributes(bool inherit) => _unmodifiedType.GetCustomAttributes(inherit);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
168public override object[] GetCustomAttributes(bool inherit) => typeImpl.GetCustomAttributes(inherit);
System.Reflection.Context (6)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
98return UnderlyingConstructor.GetCustomAttributes(inherit);
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
92return UnderlyingEvent.GetCustomAttributes(inherit);
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
83return UnderlyingField.GetCustomAttributes(inherit);
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
120return UnderlyingMethod.GetCustomAttributes(inherit);
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
113return UnderlyingProperty.GetCustomAttributes(inherit);
System\Reflection\Context\Delegation\DelegatingType.cs (1)
207return _typeInfo.GetCustomAttributes(inherit);
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
83return _innerEventInfo.GetCustomAttributes(inherit);
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
39public override object[] GetCustomAttributes(bool inherit) => m_field.GetCustomAttributes(inherit);
System.Text.Json (2)
System\ReflectionExtensions.cs (1)
64foreach (object attribute in memberInfo.GetCustomAttributes(inherit))
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (1)
218foreach (Attribute attr in type.GetCustomAttributes(inherit: false))
System.Xaml.Tests (3)
Common\CustomConstructorInfo.cs (1)
64return DelegatingConstructor.GetCustomAttributes(inherit);
Common\CustomMethodInfo.cs (1)
62return DelegatingMethod.GetCustomAttributes(inherit);
System\Xaml\XamlMemberTests.cs (1)
2397return DelegatingProperty.GetCustomAttributes(inherit);