Udostępnij za pośrednictwem


IVsRelativePathResolver Interface

Definition

Allows packages to resolve a relative path to an absolute path when IVsUIShellOpenDocument::SearchProjectsForRelativePath(UInt32, String, String[]) is called.

public interface class IVsRelativePathResolver
public interface class IVsRelativePathResolver
__interface IVsRelativePathResolver
[System.Runtime.InteropServices.Guid("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsRelativePathResolver
[System.Runtime.InteropServices.Guid("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsRelativePathResolver
[<System.Runtime.InteropServices.Guid("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsRelativePathResolver = interface
[<System.Runtime.InteropServices.Guid("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsRelativePathResolver = interface
Public Interface IVsRelativePathResolver
Attributes

Remarks

Implement this interface on an object that you proffer as a service. Register the GUID of the service at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\RelativePathResolvers. For example, to implement this object on your IVsPackage object, proffer your package as a service in your SetSite implementation; the GUID you register in the RelativePathResolvers sub key is the package GUID.

This interface allows a project language service to resolve relative paths against non-project items (for example, if a project has the concept of an INCLUDE search path). A language system that had the notion of global search paths as well as per-project search path might involve both the active project (as retrieved by IVsMonitorSelection::GetCurrentSelection) and its global package state.

Notes to Implementers

Implement on an object that is proffered as a service (for example, your package object) to resolve a relative path to an absolute path when IVsUIShellOpenDocument::SearchProjectsForRelativePath(UInt32, String, String[]) is called on your package.

Methods

ResolveRelativePath(UInt32, String, String)

Resolves a relative path to an absolute path for a document.

Applies to