IVsContainedLanguageProjectNameProvider.GetProjectName(UInt32, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定项的项目名称。
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
弄指定项的项目名称。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。