Partager via


IVsContainedLanguageProjectNameProvider.GetProjectName(UInt32, String) Method

Definition

Gets the name of the project for the specified item.

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

Parameters

itemid
UInt32

[in] The id of the item for which to get the project name.

pbstrProjectName
String

[out] The project name for the specified item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to