Partager via


IVsProject2.GetMkDocument Method (UInt32, String%)

Returns a document moniker.

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

Syntax

'Déclaration
Function GetMkDocument ( _
    itemid As UInteger, _
    <OutAttribute> ByRef pbstrMkDocument As String _
) As Integer
'Utilisation
Dim instance As IVsProject2
Dim itemid As UInteger
Dim pbstrMkDocument As String
Dim returnValue As Integer

returnValue = instance.GetMkDocument(itemid, _
    pbstrMkDocument)
int GetMkDocument(
    uint itemid,
    out string pbstrMkDocument
)
int GetMkDocument(
    [InAttribute] unsigned int itemid, 
    [OutAttribute] String^% pbstrMkDocument
)
abstract GetMkDocument : 
        itemid:uint32 * 
        pbstrMkDocument:string byref -> int 
function GetMkDocument(
    itemid : uint, 
    pbstrMkDocument : String
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Item identifier corresponding to a node in this project's hierarchy. Should be VSITEMID_ROOT or other valid item identifier. See VSITEMID.
  • pbstrMkDocument
    Type: System.String%
    [out] Pointer to a document moniker in a BSTR. It is fully qualified text uniquely describing the document represented by the itemid parameter.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsProject.GetMkDocument(UInt32, String%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProject2::GetMkDocument(
   [in] VSITEMID itemid,
   [out] BSTR *pbstrMkDocument
);

A document moniker is used as a unique index into the Running Document Table. A document moniker for an item in a file-based project is the item's file path. Project types, which do not store their items in files, uniquely identify those items in a project-specific manner. File-based project types must return the path from this method.

.NET Framework Security

See Also

Reference

IVsProject2 Interface

IVsProject2 Members

GetMkDocument Overload

Microsoft.VisualStudio.Shell.Interop Namespace