다음을 통해 공유


TypeDelegator.GetInterface Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the specified interface implemented by the type wrapped by the current TypeDelegator.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overrides Function GetInterface ( _
    name As String, _
    ignoreCase As Boolean _
) As Type
public override Type GetInterface(
    string name,
    bool ignoreCase
)

Parameters

  • name
    Type: System.String
    The fully qualified name of the interface implemented by the current class.
  • ignoreCase
    Type: System.Boolean
    true if the case is to be ignored; otherwise, false.

Return Value

Type: System.Type
A Type object representing the interface implemented (directly or indirectly) by the current class with the fully qualified name matching the specified name. If no interface that matches name is found, null is returned.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.