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