AxHost.AttachInterfaces 方法

定義

在衍生類別中被覆寫時,將介面附加在基礎的 ActiveX 控制項。

protected:
 virtual void AttachInterfaces();
protected virtual void AttachInterfaces ();
abstract member AttachInterfaces : unit -> unit
override this.AttachInterfaces : unit -> unit
Protected Overridable Sub AttachInterfaces ()

給繼承者的注意事項

擴充 AxHost 的類別應該覆寫這個方法。 在此方法的覆寫版本中,擴充類別應該呼叫 GetOcx() 以擷取自己的介面。 在大部分情況下, GetOcx() 在呼叫此方法之前,不應該呼叫 方法。

適用於

另請參閱