IVsContainedLanguageProjectNameProvider.GetProjectName(UInt32, String) 方法

定义

获取指定项的项目名称。

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

参数

itemid
UInt32

中要获取其项目名称的项的 id。

pbstrProjectName
String

弄指定项的项目名称。

返回

Int32

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

适用于