IVsRunningDocTableEvents4.OnAfterLastDocumentUnlock 方法

定义

在正在运行的文档表中的最后一个文档之后 (RDT) 解除锁定后激发。

public:
 int OnAfterLastDocumentUnlock(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::String ^ pszMkDocument, int fClosedWithoutSaving);
public:
 int OnAfterLastDocumentUnlock(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, Platform::String ^ pszMkDocument, int fClosedWithoutSaving);
int OnAfterLastDocumentUnlock(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemid, std::wstring const & pszMkDocument, int fClosedWithoutSaving);
public int OnAfterLastDocumentUnlock (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, string pszMkDocument, int fClosedWithoutSaving);
abstract member OnAfterLastDocumentUnlock : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * int -> int
Public Function OnAfterLastDocumentUnlock (pHier As IVsHierarchy, itemid As UInteger, pszMkDocument As String, fClosedWithoutSaving As Integer) As Integer

参数

pHier
IVsHierarchy

IVsHierarchy 要锁定的文档所属的对象。

itemid
UInt32

中层次结构中的项 ID。 这是一个唯一标识符,也可以是以下值之一: VSITEMID_NILVSITEMID_ROOTVSITEMID_SELECTION

pszMkDocument
String

中要锁定的文档的路径。

fClosedWithoutSaving
Int32

[in] true 如果文档在不保存的情况下关闭,则为;否则为 false

返回

Int32

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

注解

COM 签名

从 vsshell80:

[C++]

HRESULT OnAfterLastDocumentUnlock(  
    [in] IVsHierarchy* pHier,  
    [in] VSITEMID itemid,  
    [in] LPCOLESTR pszMkDocument,  
    [in] BOOL fClosedWithoutSaving  
);  

适用于