IVsRunningDocTableEvents4.OnAfterLastDocumentUnlock Method
Fired after the last document in the Running Document Table (RDT) is unlocked.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function OnAfterLastDocumentUnlock ( _
pHier As IVsHierarchy, _
itemid As UInteger, _
pszMkDocument As String, _
fClosedWithoutSaving As Integer _
) As Integer
int OnAfterLastDocumentUnlock(
IVsHierarchy pHier,
uint itemid,
string pszMkDocument,
int fClosedWithoutSaving
)
int OnAfterLastDocumentUnlock(
[InAttribute] IVsHierarchy^ pHier,
[InAttribute] unsigned int itemid,
[InAttribute] String^ pszMkDocument,
[InAttribute] int fClosedWithoutSaving
)
abstract OnAfterLastDocumentUnlock :
pHier:IVsHierarchy *
itemid:uint32 *
pszMkDocument:string *
fClosedWithoutSaving:int -> int
function OnAfterLastDocumentUnlock(
pHier : IVsHierarchy,
itemid : uint,
pszMkDocument : String,
fClosedWithoutSaving : int
) : int
Parameters
pHier
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] The IVsHierarchy object that owns the document about to be locked.
itemid
Type: System.UInt32[in] The item ID in the hierarchy. This is a unique identifier or it can be one of the following values: VSITEMID_NIL, VSITEMID_ROOT, or VSITEMID_SELECTION.
pszMkDocument
Type: System.String[in] The path to the document about to be locked.
fClosedWithoutSaving
Type: System.Int32[in] true if the document was closed without saving; otherwise false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
[C++]
HRESULT OnAfterLastDocumentUnlock(
[in] IVsHierarchy* pHier,
[in] VSITEMID itemid,
[in] LPCOLESTR pszMkDocument,
[in] BOOL fClosedWithoutSaving
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.