AssemblyMetadata.GetModules Method

Definition

Modules comprising this assembly. The first module is the manifest module.

public:
 System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::ModuleMetadata ^> GetModules();
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ModuleMetadata> GetModules ();
member this.GetModules : unit -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ModuleMetadata>
Public Function GetModules () As ImmutableArray(Of ModuleMetadata)

Returns

Exceptions

The PE image format is invalid.

IO error reading the metadata. See InnerException for details.

The object has been disposed.

Applies to