IVsProject3.GetMkDocument(UInt32, String) 方法

定义

返回文档名字对象。

public:
 int GetMkDocument(System::UInt32 itemid, [Runtime::InteropServices::Out] System::String ^ % pbstrMkDocument);
int GetMkDocument(unsigned int itemid, [Runtime::InteropServices::Out] std::wstring const & & pbstrMkDocument);
public int GetMkDocument (uint itemid, out string pbstrMkDocument);
abstract member GetMkDocument : uint32 * string -> int
Public Function GetMkDocument (itemid As UInteger, ByRef pbstrMkDocument As String) As Integer

参数

itemid
UInt32

中与此项目层次结构中的节点相对应的项标识符。 应为 VSITEMID_ROOT 或其他有效的项标识符。 请参阅 VSITEMID

pbstrMkDocument
String

弄指向 BSTR 中的文档名字对象的指针。 它是完全限定的文本,用于描述参数所表示的文档 itemid

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

COM 签名

从 vsshell:

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

文档名字对象用作正在运行的文档表中的唯一索引。 基于文件的项目中的项的文档名字对象是项的文件路径。 项目类型,不将其项存储在文件中,以特定于项目的方式唯一标识这些项。 基于文件的项目类型必须从该方法返回路径。

适用于