Table of Contents

Method GetInterface

Namespace
Microsoft.Samples.Debugging.CorMetadata
Assembly
corapi.dll

GetInterface(string, bool)

When overridden in a derived class, searches for the specified interface, specifying whether to do a case-insensitive search for the interface name.

public override Type GetInterface(string name, bool ignoreCase)

Parameters

name string

The string containing the name of the interface to get. For generic interfaces, this is the mangled name.

ignoreCase bool

true to ignore the case of that part of name that specifies the simple interface name (the part that specifies the namespace must be correctly cased).-or- false to perform a case-sensitive search for all parts of name.

Returns

Type

An object representing the interface with the specified name, implemented or inherited by the current Type, if found; otherwise, null.

Exceptions

ArgumentNullException

name is null.

AmbiguousMatchException

The current Type represents a type that implements the same generic interface with different type arguments.