Uredi

Deli z drugimi prek


IRemoteTypeContract.GetInterface(String) Method

Definition

Returns an interface that is implemented by the current IRemoteTypeContract.

public:
 System::AddIn::Contract::Automation::IRemoteTypeContract ^ GetInterface(System::String ^ canonicalName);
public System.AddIn.Contract.Automation.IRemoteTypeContract GetInterface (string canonicalName);
abstract member GetInterface : string -> System.AddIn.Contract.Automation.IRemoteTypeContract
Public Function GetInterface (canonicalName As String) As IRemoteTypeContract

Parameters

canonicalName
String

The canonical name of an interface that is implemented by the current IRemoteTypeContract.

Returns

An IRemoteTypeContract that represents the interface with the specified canonical name that this IRemoteTypeContract implements. null if this IRemoteTypeContract does not implement an interface with the specified canonical name.

Remarks

A canonical name is a globally unique name, such as a GUID. Strings in the format <assembly name>, <fully qualified type name> are recommended for managed types. Strings in the format <type library name>, <type name> are recommended for COM types.

Do not change the canonical name for a type after the type is published. Changing the canonical name for a type in a future version of a component breaks compatibility between the component and clients that are already using the type.

Applies to