Freigeben über


SubordinateFileHelper.GetChildProjectItemId Method

Gets the item id of the first subordinate file with the given extension.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function GetChildProjectItemId ( _
    parentHierarchy As IVsHierarchy, _
    parentItemId As UInteger, _
    extension As String _
) As UInteger
[CLSCompliantAttribute(false)]
public static uint GetChildProjectItemId(
    IVsHierarchy parentHierarchy,
    uint parentItemId,
    string extension
)
[CLSCompliantAttribute(false)]
public:
static unsigned int GetChildProjectItemId(
    IVsHierarchy^ parentHierarchy, 
    unsigned int parentItemId, 
    String^ extension
)
[<CLSCompliantAttribute(false)>]
static member GetChildProjectItemId : 
        parentHierarchy:IVsHierarchy * 
        parentItemId:uint32 * 
        extension:string -> uint32
public static function GetChildProjectItemId(
    parentHierarchy : IVsHierarchy, 
    parentItemId : uint, 
    extension : String
) : uint

Parameters

  • parentItemId
    Type: System.UInt32

    Item id identifying parent file.

  • extension
    Type: System.String

    Extension to find (including the ".").

Return Value

Type: System.UInt32

.NET Framework Security

See Also

Reference

SubordinateFileHelper Class

Microsoft.VisualStudio.Modeling.Shell Namespace