共用方式為


ILocalRegistry4.RegisterInterface(Guid) Method

Definition

Registers an interface for marshaling by using a locally registered proxy.

public:
 int RegisterInterface(Guid % riid);
public int RegisterInterface (ref Guid riid);
abstract member RegisterInterface : Guid -> int
Public Function RegisterInterface (ByRef riid As Guid) As Integer

Parameters

riid
Guid

ID of the interface to register.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is safe to access from any thread.

Applies to