IVsOutput2::get_RootRelativeURL Method (String^)

 

Returns an output item's path relative to the application directory when installed.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int get_RootRelativeURL(
	[OutAttribute] String^% pbstrRelativePath
)

Parameters

pbstrRelativePath
Type: System::String^

[out] Pointer to the canonical name.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsOutput2::get_RootRelativeURL(
   [out] BSTR *pbstrRelativePath
);

This method is useful for Web-based project outputs for which the relative path cannot automatically be calculated. It is also useful when an output item is located outside of a project's directory. This occurs when outputs are not currently local and therefore do not match up with the value returned by get_RootURL. Projects that are not hierarchical should return "." from this method.

Return to top
Show: