Partager via


Location.MetadataModule Property

Definition

Returns the metadata module the location is associated with or null if the module is not available.

public:
 virtual property Microsoft::CodeAnalysis::IModuleSymbol ^ MetadataModule { Microsoft::CodeAnalysis::IModuleSymbol ^ get(); };
public virtual Microsoft.CodeAnalysis.IModuleSymbol MetadataModule { get; }
public Microsoft.CodeAnalysis.IModuleSymbol? MetadataModule { get; }
member this.MetadataModule : Microsoft.CodeAnalysis.IModuleSymbol
Public Overridable ReadOnly Property MetadataModule As IModuleSymbol
Public ReadOnly Property MetadataModule As IModuleSymbol

Property Value

Remarks

Might return null even if IsInMetadata returns true. The module symbol might not be available anymore, for example, if the location is serialized and deserialized.

Applies to