IVsContainedLanguageProjectNameProvider::GetProjectName Method (UInt32, String^)

 

Gets the name of the project for the specified item.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int GetProjectName(
	unsigned int itemid,
	[OutAttribute] String^% pbstrProjectName
)

Parameters

itemid
Type: System::UInt32

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

pbstrProjectName
Type: System::String^

[out] The project name for the specified item.

Return Value

Type: System::Int32

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

Return to top
Show: