次の方法で共有


IVsDocumentLockHolder.ShowDocumentHolder Method

Called by the environment before prompting the user to save the invisible document locked by the holder.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function ShowDocumentHolder As Integer
'使用
Dim instance As IVsDocumentLockHolder
Dim returnValue As Integer

returnValue = instance.ShowDocumentHolder()
int ShowDocumentHolder()
int ShowDocumentHolder()
function ShowDocumentHolder() : int

Return Value

Type: System.Int32

Remarks

The IVsDocumentLockHolder::ShowDocumentHolder method is called when the document is going to be opened by an editor managed by the environment and the environment needs to close the invisible lock holder first. The environment calls this method before closing the document so the document is active when the Save dialog box is displayed. This method is called before prompting the user to save the invisible document locked by the holder.

Permissions

See Also

Reference

IVsDocumentLockHolder Interface

IVsDocumentLockHolder Members

Microsoft.VisualStudio.Shell.Interop Namespace