Implemented interface member:
method
GetCustomAttributes
System.Reflection.ICustomAttributeProvider.GetCustomAttributes(System.Boolean)
37 overrides of GetCustomAttributes
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
90public override object[] GetCustomAttributes(bool inherit)
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
42public override object[] GetCustomAttributes(bool inherit) { return _ctor.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
49public override object[] GetCustomAttributes(bool inherit) { return _field.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
55public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
542public override object[] GetCustomAttributes(bool inherit)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
265public override object[] GetCustomAttributes(bool inherit) { throw new NotSupportedException(); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
199public override object[] GetCustomAttributes(bool inherit) => _unmodifiedType.GetCustomAttributes(inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
175public sealed override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
169public override object[] GetCustomAttributes(bool inherit) => typeImpl.GetCustomAttributes(inherit);
System\Reflection\Emit\DynamicMethod.cs (1)
167public override object[] GetCustomAttributes(bool inherit)
System\Reflection\Runtime\General\LegacyCustomAttributeApis.cs (5)
54public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit).ToArray(); 77public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit: false).ToArray(); // Desktop compat: for events, this form of the api ignores "inherit" 100public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit).ToArray(); 123public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit).ToArray(); 192public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit: false).ToArray(); // Desktop compat: for properties, this form of the api ignores "inherit"
System\RuntimeType.NativeAot.cs (1)
801public override object[] GetCustomAttributes(bool inherit)
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
146public override object[] GetCustomAttributes(bool inherit) { Debug.Assert(false); throw NotImplemented.ByDesign; }
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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
542public 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)
36public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
76public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
141public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
44public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
166public sealed override object[] GetCustomAttributes(bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Types\RoType.cs (1)
389public 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);
61 references to GetCustomAttributes
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
1787var unionAttr = envVarsProperty.GetCustomAttributes(false)
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)
43var 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)
63var attributes = typeof(TConnectionHandler).GetCustomAttributes(inherit: true);
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
168var 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 (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
168var 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.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.OpenApi (2)
Services\Schemas\OpenApiSchemaService.cs (1)
110var typeAttributes = underlyingType.GetCustomAttributes(inherit: false);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
168var 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.AspNetCore.SignalR.Core (1)
Internal\DefaultHubDispatcher.cs (1)
916var authorizationMetadata = methodInfo.GetCustomAttributes(inherit: true);
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskRouter.cs (1)
74foreach (object attr in t.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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
42public override object[] GetCustomAttributes(bool inherit) { return _ctor.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
49public override object[] GetCustomAttributes(bool inherit) { return _field.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
47public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
55public override object[] GetCustomAttributes(bool inherit) { return _method.GetCustomAttributes(inherit); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
199public override object[] GetCustomAttributes(bool inherit) => _unmodifiedType.GetCustomAttributes(inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
169public 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\runtime\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)
65foreach (object attribute in memberInfo.GetCustomAttributes(inherit))
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (1)
316foreach (Attribute attr in type.GetCustomAttributes(inherit: true))