Gets a document moniker.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function GetMkDocument ( _
itemId As UInteger, _
<OutAttribute> ByRef mkDoc As String _
) As Integer
'使用
Dim instance As ProjectNode
Dim itemId As UInteger
Dim mkDoc As String
Dim returnValue As Integer
returnValue = instance.GetMkDocument(itemId, _
mkDoc)
public virtual int GetMkDocument(
uint itemId,
out string mkDoc
)
public:
virtual int GetMkDocument(
unsigned int itemId,
[OutAttribute] String^% mkDoc
)
public function GetMkDocument(
itemId : uint,
mkDoc : String
) : int
Parameters
itemId
Type: System.UInt32Item identifier corresponding to a node in this project's hierarchy. Should be VSITEMID_ROOT or other valid item identifier.
mkDoc
Type: System.String%Specifies a document moniker as 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
IVsProject3.GetMkDocument(UInt32, String%)
IVsProject2.GetMkDocument(UInt32, String%)
IVsProject.GetMkDocument(UInt32, String%)
Permissions
- 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.