DesignerDocDataService.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在运行文档表中的指定文档上释放指定类型的最后一个锁之前调用 (RDT) 。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock(System::UInt32 docCookie, System::UInt32 lockType, System::UInt32 readLocksRemaining, System::UInt32 editLocksRemaining) = Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents2::OnBeforeLastDocumentUnlock;
virtual int Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock(unsigned int docCookie, unsigned int lockType, unsigned int readLocksRemaining, unsigned int editLocksRemaining) = Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents2::OnBeforeLastDocumentUnlock;
int Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock(unsigned int docCookie, unsigned int lockType, unsigned int readLocksRemaining, unsigned int editLocksRemaining);
int IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock (uint docCookie, uint lockType, uint readLocksRemaining, uint editLocksRemaining);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock : uint32 * uint32 * uint32 * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock : uint32 * uint32 * uint32 * uint32 -> int
Function OnBeforeLastDocumentUnlock (docCookie As UInteger, lockType As UInteger, readLocksRemaining As UInteger, editLocksRemaining As UInteger) As Integer Implements IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock
参数
- docCookie
- UInt32
正在运行的文档表中的文档数据对象的标识符。
- lockType
- UInt32
Microsoft.VisualStudio.Shell.Interop.__VSRDTFLAGS 指定正在释放的锁类型的值。
- readLocksRemaining
- UInt32
剩余读取锁的数目。
- editLocksRemaining
- UInt32
剩余的编辑锁的数量。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。