NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Type.GetInterface (String, Boolean)

When implemented by a derived class, searches for the specified interface, specifying case-sensitivity.

[Visual Basic]
Overloads MustOverride Public Function GetInterface( _
   ByVal name As String, _
   ByVal ignoreCase As Boolean _
) As Type
[C#]
public abstract Type GetInterface(
   string name,
   bool ignoreCase
);
[C++]
public: virtual Type* GetInterface(
   String* name,
   bool ignoreCase
) = 0;
[JScript]
public abstract function GetInterface(
   name : String,
   ignoreCase : Boolean
) : Type;

Parameters

name
The String containing the name of the interface to get.
ignoreCase
true to perform a case-insensitive search for name.

-or-

false to perform a case-sensitive search for name.

Return Value

A Type object representing the interface with the specified name, implemented or inherited by the current Type, if found; otherwise, a null reference (in Visual Basic Nothing).

Exceptions

Exception Type Condition
ArgumentNullException name is a null reference (Nothing).
TargetInvocationException A static initializer is invoked and throws an exception.

Remarks

Abstract. This method must be implemented by a derived class.

If typeName has 128 or more standard ASCII characters, a case-sensitive search will be performed, regardless of the value of ignoreCase. Arrays or COM types are not searched for unless they have already been loaded into the table of available classes.

See Also

Type Class | Type Members | System Namespace | Type.GetInterface Overload List