Share via


PartDiscovery.ThrowOnInvalidImportingMemberOrParameter Method

Definition

Throws an exception if certain basic rules for an importing member or parameter are violated.

protected virtual void ThrowOnInvalidImportingMemberOrParameter (System.Reflection.ICustomAttributeProvider member, bool isImportMany);
abstract member ThrowOnInvalidImportingMemberOrParameter : System.Reflection.ICustomAttributeProvider * bool -> unit
override this.ThrowOnInvalidImportingMemberOrParameter : System.Reflection.ICustomAttributeProvider * bool -> unit
Protected Overridable Sub ThrowOnInvalidImportingMemberOrParameter (member As ICustomAttributeProvider, isImportMany As Boolean)

Parameters

member
ICustomAttributeProvider

The importing member or importing parameter.

isImportMany
Boolean

A value indicating whether the import is an ImportMany.

Applies to