SharedProjectUtilities.GetDeploymentRelativePath(IVsHierarchy, UInt32) Method

Definition

Gets the deployment relative path of the given item id.

public:
 static System::String ^ GetDeploymentRelativePath(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, System::UInt32 itemId);
public:
 static Platform::String ^ GetDeploymentRelativePath(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, unsigned int itemId);
 static std::wstring GetDeploymentRelativePath(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & hierarchy, unsigned int itemId);
public static string GetDeploymentRelativePath (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, uint itemId);
static member GetDeploymentRelativePath : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 -> string
Public Function GetDeploymentRelativePath (hierarchy As IVsHierarchy, itemId As UInteger) As String

Parameters

hierarchy
IVsHierarchy

The project hierarchy.

itemId
UInt32

The item id.

Returns

The deployment path relative to the output directory or package directory, or null if failed.

Remarks

This method works for C# and JS.

Applies to