IVsSolutionEvents6.OnAfterProjectRegisteredInRunningDocumentTable Method
The notification that is fired during project creation, after the solution has registered the project file in the RunningDocumentTable. This event can be used to find out the docCookie value that was assigned to the project in the RDT. Note: If the solution's call to RegisterAndLockDocument failed, then docCookie will be VSCOOKIE_NIL. Clients of this event are expected to explicitly recognize this case and react accordingly. For example, a client may want to re-register their project placeholder document in the RDT.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime (in Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime.dll)
Syntax
'Declaration
Function OnAfterProjectRegisteredInRunningDocumentTable ( _
projectID As Guid, _
projectFullPath As String, _
docCookie As UInteger _
) As Integer
int OnAfterProjectRegisteredInRunningDocumentTable(
Guid projectID,
string projectFullPath,
uint docCookie
)
int OnAfterProjectRegisteredInRunningDocumentTable(
[InAttribute] Guid projectID,
[InAttribute] String^ projectFullPath,
[InAttribute] unsigned int docCookie
)
abstract OnAfterProjectRegisteredInRunningDocumentTable :
projectID:Guid *
projectFullPath:string *
docCookie:uint32 -> int
function OnAfterProjectRegisteredInRunningDocumentTable(
projectID : Guid,
projectFullPath : String,
docCookie : uint
) : int
Parameters
projectID
Type: GuidThe project ID.
projectFullPath
Type: StringThe full path of the project file.
docCookie
Type: UInt32The doc cookie in the RunningDocumentTable.
Return Value
Type: Int32
The HRESULT.
.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.