Share via


SubordinateFileHelper.GetChildProjectItemId Method

Definition

Important

This API is not CLS-compliant.

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

public:
 static System::UInt32 GetChildProjectItemId(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ parentHierarchy, System::UInt32 parentItemId, System::String ^ extension);
[System.CLSCompliant(false)]
public static uint GetChildProjectItemId (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy parentHierarchy, uint parentItemId, string extension);
public static uint GetChildProjectItemId (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy parentHierarchy, uint parentItemId, string extension);
[<System.CLSCompliant(false)>]
static member GetChildProjectItemId : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string -> uint32
static member GetChildProjectItemId : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string -> uint32
Public Shared Function GetChildProjectItemId (parentHierarchy As IVsHierarchy, parentItemId As UInteger, extension As String) As UInteger

Parameters

parentHierarchy
IVsHierarchy

Parent hierarchy.

parentItemId
UInt32

Item id identifying parent file.

extension
String

Extension to find (including the ".").

Returns

Attributes

Applies to