Megosztás a következőn keresztül:


Compilation.GetTypesByMetadataName(String) Method

Definition

Gets all types with the compilation's assembly and all referenced assemblies that have the given canonical CLR metadata name. Accessibility to the current assembly is ignored when searching for matching type names.

public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamedTypeSymbol> GetTypesByMetadataName (string fullyQualifiedMetadataName);
member this.GetTypesByMetadataName : string -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamedTypeSymbol>
Public Function GetTypesByMetadataName (fullyQualifiedMetadataName As String) As ImmutableArray(Of INamedTypeSymbol)

Parameters

fullyQualifiedMetadataName
String

Returns

Empty array if no types match. Otherwise, all types that match the name, current assembly first if present.

Remarks

Assemblies can contain multiple modules. Within each assembly, the search is performed based on module's position in the module list of that assembly. When a match is found in one module in an assembly, no further modules within that assembly are searched.

Type forwarders are ignored, and not considered part of the assembly where the TypeForwardAttribute is written.

Applies to