Partilhar via


MetadataReferenceProperties.WithEmbedInteropTypes(Boolean) Method

Definition

Returns MetadataReferenceProperties with EmbedInteropTypes set to specified value.

public:
 Microsoft::CodeAnalysis::MetadataReferenceProperties WithEmbedInteropTypes(bool embedInteropTypes);
public Microsoft.CodeAnalysis.MetadataReferenceProperties WithEmbedInteropTypes (bool embedInteropTypes);
member this.WithEmbedInteropTypes : bool -> Microsoft.CodeAnalysis.MetadataReferenceProperties
Public Function WithEmbedInteropTypes (embedInteropTypes As Boolean) As MetadataReferenceProperties

Parameters

embedInteropTypes
Boolean

Returns

Exceptions

Kind is Module, as interop types can't be embedded from modules.

Applies to