IVsTextBufferDataEvents.OnLoadCompleted(Int32) 方法

定义

初始化缓冲区时通知客户端。

public:
 int OnLoadCompleted(int fReload);
public:
 int OnLoadCompleted(int fReload);
int OnLoadCompleted(int fReload);
public int OnLoadCompleted (int fReload);
abstract member OnLoadCompleted : int -> int
Public Function OnLoadCompleted (fReload As Integer) As Integer

参数

fReload
Int32

中指定负载是重载的结果,而不是 "全新" 负载。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textmgr:

HRESULT IVsTextBufferDataEvents::OnLoadCompleted(  
   [in] BOOL fReload  
);  

在非重载的情况下,如果任何事件接收器从返回错误 HRESULT OnLoadCompleted ,则相应的 Load [document data] 调用将返回,并返回相同的错误 hresult。 在重载方案中,返回值被忽略。

适用于