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
'Usage
Dim instance As IVsOutput2
Dim pbstrRelativePath As String
Dim returnValue As Integer
returnValue = instance.get_RootRelativeURL(pbstrRelativePath)
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: 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.
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.