다음을 통해 공유


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

  • pszMkDocument
    Type: String

    [in] The path to the document about to be locked.

  • fClosedWithoutSaving
    Type: Int32

    [in] true if the document was closed without saving; otherwise false.

Return Value

Type: 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

See Also

Reference

IVsRunningDocTableEvents4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace