IVsRelativePathResolver 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用 IVsUIShellOpenDocument::时,允许包解析绝对路径的相对路径 SearchProjectsForRelativePath(UInt32, String, String[]) 。
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(1)>]
type IVsRelativePathResolver = interface
Public Interface IVsRelativePathResolver
- 属性
注解
在提供为服务的对象上实现此接口。 在 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\RelativePathResolvers 注册服务的 GUID。 例如,若要在你的 IVsPackage 对象上实现此对象,请在实现中将包提供为服务 SetSite ; 在子项中注册的 guid RelativePathResolvers 是包 GUID。
此接口允许项目语言服务解析非项目项的相对路径 (例如,如果项目具有包含搜索路径) 的概念。 具有全局搜索路径以及按项目搜索路径的概念的语言系统可能会涉及 IVsMonitorSelection:: GetCurrentSelection) 及其全局包状态检索到的活动项目 (。
实施者说明
在提供为服务的对象上实现 (例如,包对象) 在包上调用 IVsUIShellOpenDocument::时解析到绝对路径的相对路径 SearchProjectsForRelativePath(UInt32, String, String[]) 。
方法
| ResolveRelativePath(UInt32, String, String) |
解析文档的绝对路径的相对路径。 |