31 types derived from Export
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\DeclarationName\ExportDeclarationNameRecommenderAttribute.cs (1)
12internal sealed class ExportDeclarationNameRecommenderAttribute(string name) : ExportAttribute(typeof(IDeclarationNameRecommender))
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (3)
EmbeddedLanguages\BraceMatching\ExportAspNetCoreEmbeddedLanguageBraceMatcherAttribute.cs (1)
15internal sealed class ExportAspNetCoreEmbeddedLanguageBraceMatcherAttribute : ExportAttribute
EmbeddedLanguages\Classification\ExportAspNetCoreEmbeddedLanguageClassifierAttribute.cs (1)
15internal sealed class ExportAspNetCoreEmbeddedLanguageClassifierAttribute : ExportAttribute
EmbeddedLanguages\DocumentHighlighting\ExportAspNetCoreEmbeddedLanguageClassifierAttribute.cs (1)
15internal sealed class ExportAspNetCoreEmbeddedLanguageDocumentHighlighterAttribute : ExportAttribute
Microsoft.CodeAnalysis.Features (17)
BraceCompletion\ExportBraceCompletionServiceAttribute.cs (1)
12internal sealed class ExportBraceCompletionServiceAttribute(string language) : ExportAttribute(typeof(IBraceCompletionService))
BraceMatching\ExportBraceMatcherAttribute.cs (1)
12internal sealed class ExportBraceMatcherAttribute(string language) : ExportAttribute(typeof(IBraceMatcher))
CodeFixes\Suppression\ExportConfigurationFixProviderAttribute.cs (1)
15internal sealed class ExportConfigurationFixProviderAttribute : ExportAttribute
Completion\ExportArgumentProviderAttribute.cs (1)
12internal sealed class ExportArgumentProviderAttribute(string name, string language) : ExportAttribute(typeof(ArgumentProvider))
Completion\ExportCompletionProviderAttribute.cs (1)
16public sealed class ExportCompletionProviderAttribute(string name, string language) : ExportAttribute(typeof(CompletionProvider))
Diagnostics\LanguageServer\LspBuildOnlyDiagnosticsAttribute.cs (1)
13internal sealed class LspBuildOnlyDiagnosticsAttribute(string languageName, params string[] buildOnlyDiagnostics) : ExportAttribute(typeof(ILspBuildOnlyDiagnostics)), ILspBuildOnlyDiagnosticsMetadata
EmbeddedLanguages\ExportEmbeddedLanguageFeatureServiceAttribute.cs (1)
15internal abstract class ExportEmbeddedLanguageFeatureServiceAttribute : ExportAttribute
ExternalAccess\UnitTesting\SolutionCrawler\ExportUnitTestingIncrementalAnalyzerProviderAttribute.cs (1)
12internal sealed class ExportUnitTestingIncrementalAnalyzerProviderAttribute : ExportAttribute
Formatting\ExportNewDocumentFormattingProviderAttribute.cs (1)
12internal sealed class ExportNewDocumentFormattingProviderAttribute(string languageName) : ExportAttribute(typeof(INewDocumentFormattingProvider))
Highlighting\ExportHighlighterAttribute.cs (1)
14internal sealed class ExportHighlighterAttribute(string language) : ExportAttribute(typeof(IHighlighter))
Intents\IntentProviderAttribute.cs (1)
12internal sealed class IntentProviderAttribute(string intentName, string languageName) : ExportAttribute(typeof(IIntentProvider)), IIntentProviderMetadata
MetadataAsSource\ExportMetadataAsSourceFileProvider.cs (1)
16internal sealed class ExportMetadataAsSourceFileProviderAttribute(string name) : ExportAttribute(typeof(IMetadataAsSourceFileProvider))
Options\EditorConfig\EditorConfigOptionsEnumeratorAttribute.cs (1)
13: ExportAttribute(typeof(IEditorConfigOptionsEnumerator))
Organizing\Organizers\ExportSyntaxNodeOrganizerAttribute.cs (1)
12internal sealed class ExportSyntaxNodeOrganizerAttribute(string languageName) : ExportAttribute(typeof(ISyntaxOrganizer))
QuickInfo\ExportQuickInfoProviderAttribute.cs (1)
16internal sealed class ExportQuickInfoProviderAttribute(string name, string language) : ExportAttribute(typeof(QuickInfoProvider))
SignatureHelp\ExportSignatureHelpProviderAttribute.cs (1)
12internal sealed class ExportSignatureHelpProviderAttribute(string name, string language) : ExportAttribute(typeof(ISignatureHelpProvider))
Snippets\ExportSnippetProviderAttribute.cs (1)
13internal sealed class ExportSnippetProviderAttribute(string name, string language) : ExportAttribute(typeof(ISnippetProvider))
Microsoft.CodeAnalysis.Workspaces (10)
CodeCleanup\Providers\ExportCodeCleanupProvider.cs (1)
16internal sealed class ExportCodeCleanupProvider : ExportAttribute
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
19public sealed class ExportCodeFixProviderAttribute : ExportAttribute
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
17public sealed class ExportCodeRefactoringProviderAttribute : ExportAttribute
Remote\ExportRemoteServiceCallbackDispatcherAttribute.cs (1)
12internal sealed class ExportRemoteServiceCallbackDispatcherAttribute : ExportAttribute
Workspace\Host\EventListener\ExportEventListenerAttribute.cs (1)
15internal sealed class ExportEventListenerAttribute : ExportAttribute
Workspace\Host\Mef\ExportDynamicFileInfoProviderAttribute.cs (1)
18internal sealed class ExportDynamicFileInfoProviderAttribute : ExportAttribute
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (1)
22public class ExportLanguageServiceAttribute(Type type, string language, string layer = ServiceLayer.Default) : ExportAttribute(typeof(ILanguageService))
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (1)
22public class ExportLanguageServiceFactoryAttribute(Type type, string language, string layer = ServiceLayer.Default) : ExportAttribute(typeof(ILanguageServiceFactory))
Workspace\Host\Mef\ExportWorkspaceServiceAttribute.cs (1)
21public class ExportWorkspaceServiceAttribute(Type serviceType, string layer = ServiceLayer.Default) : ExportAttribute(typeof(IWorkspaceService))
Workspace\Host\Mef\ExportWorkspaceServiceFactoryAttribute.cs (1)
21public class ExportWorkspaceServiceFactoryAttribute(Type serviceType, string layer = ServiceLayer.Default) : ExportAttribute(typeof(IWorkspaceServiceFactory))
39 instantiations of Export
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MatchFolderAndNamespace\CSharpChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
13[Export(typeof(CSharpChangeNamespaceToMatchFolderCodeFixProvider))]
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
18[Export(typeof(CSharpInlineMethodRefactoringProvider))]
Completion\CompletionProviders\KeywordCompletionProvider.cs (1)
18[Export(typeof(KeywordCompletionProvider))]
ExtractMethod\CSharpExtractMethodService.cs (1)
14[Export(typeof(IExtractMethodService)), Shared]
src\roslyn\src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
20[Export(typeof(CSharpMatchFolderAndNamespaceDiagnosticAnalyzer)), Shared]
src\roslyn\src\Analyzers\CSharp\CodeFixes\MatchFolderAndNamespace\CSharpChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
13[Export(typeof(CSharpChangeNamespaceToMatchFolderCodeFixProvider))]
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\SyntaxClassification\CSharpSyntaxClassificationService.cs (1)
19[ExportLanguageServiceFactory(typeof(ISyntaxClassificationService), LanguageNames.CSharp), Export, Shared]
Microsoft.CodeAnalysis.Features (22)
BraceMatching\BraceMatchingService.cs (1)
16[Export(typeof(IBraceMatchingService)), Shared]
CodeFixes\Service\CodeFixService.cs (1)
39[Export(typeof(ICodeFixService)), Shared]
CodeRefactorings\CodeRefactoringService.cs (1)
27[Export(typeof(ICodeRefactoringService)), Shared]
Diagnostics\IDiagnosticsRefresher.cs (1)
33[Export(typeof(IDiagnosticsRefresher)), Shared]
EditAndContinue\EditAndContinueService.cs (1)
26[Export(typeof(IEditAndContinueService)), Shared]
EditAndContinue\EditAndContinueSessionState.cs (2)
22[Export(typeof(IEditAndContinueSessionTracker))] 23[Export(typeof(EditAndContinueSessionState))]
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
26[Export(typeof(PdbMatchingSourceTextProvider))]
EditAndContinue\SolutionSnapshotRegistry.cs (2)
20[Export(typeof(SolutionSnapshotRegistry))] 21[Export(typeof(ISolutionSnapshotRegistry))]
ExternalAccess\UnitTesting\LegacySolutionEvents\UnitTestingLegacySolutionEventsListener.cs (1)
21[Export(typeof(ILegacySolutionEventsListener)), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptDiagnosticAnalyzerService.cs (1)
14[Export(typeof(IVSTypeScriptDiagnosticAnalyzerService)), Shared]
Highlighting\HighlightingService.cs (1)
15[Export(typeof(IHighlightingService))]
MetadataAsSource\MetadataAsSourceFileService.cs (1)
25[Export(typeof(IMetadataAsSourceFileService)), Shared]
Options\EditorConfig\EditorConfigOptionsEnumerator.cs (1)
22[Export(typeof(EditorConfigOptionsEnumerator)), Shared]
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
20[Export(typeof(IImplementationAssemblyLookupService)), Shared]
PdbSourceDocument\PdbFileLocatorService.cs (1)
18[Export(typeof(IPdbFileLocatorService)), Shared]
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
21[Export(typeof(IPdbSourceDocumentLoaderService)), Shared]
SignatureHelp\SignatureHelpService.cs (1)
24[Export(typeof(SignatureHelpService)), Shared]
Testing\TestFrameworks\MSTestTestFrameworkMetadata.cs (1)
11[Export(typeof(ITestFrameworkMetadata)), Shared]
Testing\TestFrameworks\NUnitTestFrameworkMetadata.cs (1)
11[Export(typeof(ITestFrameworkMetadata)), Shared]
Testing\TestFrameworks\XUnitTestFrameworkMetadata.cs (1)
11[Export(typeof(ITestFrameworkMetadata)), Shared]
Microsoft.CodeAnalysis.VisualBasic.Features (2)
CodeRefactorings\InlineMethod\VisualBasicInlineMethodRefactoringProvider.vb (1)
16<Export(GetType(VisualBasicInlineMethodRefactoringProvider))>
LanguageServices\VisualBasicStructuralTypeDisplayService.vb (1)
14<Export, [Shared]>
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Classification\SyntaxClassification\VisualBasicSyntaxClassificationService.vb (1)
16<ExportLanguageService(GetType(ISyntaxClassificationService), LanguageNames.VisualBasic), Export, [Shared]>
Microsoft.CodeAnalysis.Workspaces (6)
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsynchronousOperationListenerProvider.cs (1)
13[Export(typeof(VSTypeScriptAsynchronousOperationListenerProvider))]
Log\WorkspaceErrorLogger.cs (1)
12[ExportWorkspaceService(typeof(IErrorLoggerService)), Export(typeof(IErrorLoggerService)), Shared]
Options\GlobalOptionService.cs (1)
18[Export(typeof(IGlobalOptionService)), Shared]
Options\LegacyWorkspaceOptionService.cs (1)
16[Export(typeof(ILegacyGlobalOptionService)), Shared]
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (2)
26[Export(typeof(IAsynchronousOperationListenerProvider))] 27[Export(typeof(AsynchronousOperationListenerProvider))]
System.Composition.Convention (1)
System\Composition\Convention\ExportConventionBuilder.cs (1)
125attributes.Add(new ExportAttribute(contractName, _contractType));
17 references to Export
Roslyn.Diagnostics.Analyzers (2)
ExportedPartsShouldHaveImportingConstructorCodeFixProvider.cs (1)
185if (attributeClass.Name == nameof(ExportAttribute))
TestExportsShouldNotBeDiscoverableCodeFixProvider.cs (1)
77if (attributeClass.Name == nameof(ExportAttribute))
System.Composition.AttributedModel (6)
System\Composition\ExportAttribute.cs (4)
16/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 24/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 38/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 51/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the
System\Composition\ExportMetadataAttribute.cs (1)
8/// <see cref="ExportAttribute"/>.
System\Composition\MetadataAttributeAttribute.cs (1)
8/// or method marked with the <see cref="ExportAttribute"/>.
System.Composition.Convention (4)
System\Composition\Convention\PartConventionBuilder.cs (4)
19private static readonly Type s_exportAttributeType = typeof(ExportAttribute); 426bool isConfigured = type.GetTypeInfo().GetCustomAttributes<ExportAttribute>(false).FirstOrDefault() != null || MemberHasExportMetadata(type.GetTypeInfo()); 497bool isConfigured = type.GetTypeInfo().GetCustomAttributes<ExportAttribute>(false).FirstOrDefault() != null || MemberHasExportMetadata(type.GetTypeInfo()); 730isConfigured = pi.GetCustomAttributes<ExportAttribute>(false).FirstOrDefault() != null || MemberHasExportMetadata(pi);
System.Composition.TypedParts (5)
System\Composition\TypedParts\Discovery\TypeInspector.cs (5)
55foreach (var export in _attributeContext.GetDeclaredAttributes<ExportAttribute>(partTypeAsType, partType)) 81foreach (var export in _attributeContext.GetDeclaredAttributes<ExportAttribute>(partTypeAsType, property)) 106if (attribute is ExportAttribute)