IVsOutput2.get_RootRelativeURL Method
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)
Syntax
'Declaration
Function get_RootRelativeURL ( _
<OutAttribute> ByRef pbstrRelativePath As String _
) As Integer
int get_RootRelativeURL(
out string pbstrRelativePath
)
int get_RootRelativeURL(
[OutAttribute] String^% pbstrRelativePath
)
abstract get_RootRelativeURL :
pbstrRelativePath:string byref -> int
function get_RootRelativeURL(
pbstrRelativePath : String
) : int
Parameters
pbstrRelativePath
Type: String%[out] Pointer to the canonical name.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.