Partager via


IVsContainedLanguageProjectNameProvider.GetProjectName Method

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)

Syntax

'Declaration
Function GetProjectName ( _
    itemid As UInteger, _
    <OutAttribute> ByRef pbstrProjectName As String _
) As Integer
int GetProjectName(
    uint itemid,
    out string pbstrProjectName
)
int GetProjectName(
    [InAttribute] unsigned int itemid, 
    [OutAttribute] String^% pbstrProjectName
)
abstract GetProjectName : 
        itemid:uint32 * 
        pbstrProjectName:string byref -> int
function GetProjectName(
    itemid : uint, 
    pbstrProjectName : String
) : int

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.

.NET Framework Security

See Also

Reference

IVsContainedLanguageProjectNameProvider Interface

Microsoft.VisualStudio.TextManager.Interop Namespace