IPeekResultFactory.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(IPeekResultDisplayInfo, Action)
创建一个的实例, IPeekResult 该实例不基于文档中的某个位置,但可以从外部浏览,例如只能在对象浏览器中浏览的元数据类。
public:
Microsoft::VisualStudio::Language::Intellisense::IExternallyBrowsablePeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo ^ displayInfo, Action ^ browseAction);
public Microsoft.VisualStudio.Language.Intellisense.IExternallyBrowsablePeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo displayInfo, Action browseAction);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo * Action -> Microsoft.VisualStudio.Language.Intellisense.IExternallyBrowsablePeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo, browseAction As Action) As IExternallyBrowsablePeekResult
参数
- displayInfo
- IPeekResultDisplayInfo
定义用于将此结果显示给用户的属性。
- browseAction
- Action
用于在外部 (速览外浏览结果的操作) 。
返回
的有效实例 IExternallyBrowsablePeekResult 。
适用于
Create(IPeekResultDisplayInfo, String, Span, Int32, Boolean)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo ^ displayInfo, System::String ^ filePath, Microsoft::VisualStudio::Text::Span eoiSpan, int idPosition, bool isReadOnly);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo displayInfo, string filePath, Microsoft.VisualStudio.Text.Span eoiSpan, int idPosition, bool isReadOnly);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo * string * Microsoft.VisualStudio.Text.Span * int * bool -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo, filePath As String, eoiSpan As Span, idPosition As Integer, isReadOnly As Boolean) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo
定义用于将此结果显示给用户的属性。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- eoiSpan
- Span
相关实体的范围,该范围为从缓冲区开头开始的字符偏移量。
- idPosition
- Int32
标识位置相对于缓冲区起始位置的字符偏移量。
- isReadOnly
- Boolean
定义此结果是否为只读。
返回
的有效实例 IDocumentPeekResult 。
适用于
Create(IPeekResultDisplayInfo, String, Int32, Int32, Int32, Int32, Int32, Int32)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo ^ displayInfo, System::String ^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idLine, int idIndex);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo displayInfo, string filePath, int startLine, int startIndex, int endLine, int endIndex, int idLine, int idIndex);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo * string * int * int * int * int * int * int -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo, filePath As String, startLine As Integer, startIndex As Integer, endLine As Integer, endIndex As Integer, idLine As Integer, idIndex As Integer) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo
定义用于将此结果显示给用户的属性。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- startLine
- Int32
结果位置起始位置的行号。
- startIndex
- Int32
结果位置的起始位置的字符索引。
- endLine
- Int32
结果位置的结束位置的行号。
- endIndex
- Int32
结果位置的结束位置的字符索引。
- idLine
- Int32
结果的标识位置的行号 (例如,方法的名称标记) 的位置。
- idIndex
- Int32
结果的标识位置的字符索引 (例如,方法的名称标记) 的位置。
返回
的有效实例 IDocumentPeekResult 。
适用于
Create(IPeekResultDisplayInfo, String, Int32, Int32, Int32, Int32, Int32, Int32, Boolean)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo ^ displayInfo, System::String ^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idLine, int idIndex, bool isReadOnly);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo displayInfo, string filePath, int startLine, int startIndex, int endLine, int endIndex, int idLine, int idIndex, bool isReadOnly);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo * string * int * int * int * int * int * int * bool -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo, filePath As String, startLine As Integer, startIndex As Integer, endLine As Integer, endIndex As Integer, idLine As Integer, idIndex As Integer, isReadOnly As Boolean) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo
定义用于将此结果显示给用户的属性。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- startLine
- Int32
结果位置起始位置的行号。
- startIndex
- Int32
结果位置的起始位置的字符索引。
- endLine
- Int32
结果位置的结束位置的行号。
- endIndex
- Int32
结果位置的结束位置的字符索引。
- idLine
- Int32
结果的标识位置的行号 (例如,方法的名称标记) 的位置。
- idIndex
- Int32
结果的标识位置的字符索引 (例如,方法的名称标记) 的位置。
- isReadOnly
- Boolean
定义此结果是否为只读。
返回
的有效实例 IDocumentPeekResult 。
适用于
Create(IPeekResultDisplayInfo2, ImageMoniker, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo2 ^ displayInfo, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker image, System::String ^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 displayInfo, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image, string filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * string * int * int * int * int * int * int * int * int -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo2, image As ImageMoniker, filePath As String, startLine As Integer, startIndex As Integer, endLine As Integer, endIndex As Integer, idStartLine As Integer, idStartIndex As Integer, idEndLine As Integer, idEndIndex As Integer) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo2
定义用于将此结果显示给用户的属性。
- image
- ImageMoniker
表示的图像 IDocumentPeekResult 。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- startLine
- Int32
结果位置起始位置的行号。
- startIndex
- Int32
结果位置的起始位置的字符索引。
- endLine
- Int32
结果位置的结束位置的行号。
- endIndex
- Int32
结果位置的结束位置的字符索引。
- idStartLine
- Int32
结果的标识范围的起始位置的行号 (例如,方法的名称标记) 的位置。
- idStartIndex
- Int32
结果的标识范围的起始位置的字符索引 (例如,方法名称标记的位置) 。
- idEndLine
- Int32
结果标识范围的结束位置的行号。
- idEndIndex
- Int32
结果标识范围的结束位置的字符索引。
返回
的有效实例 IDocumentPeekResult 。
适用于
Create(IPeekResultDisplayInfo2, ImageMoniker, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Boolean)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo2 ^ displayInfo, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker image, System::String ^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 displayInfo, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image, string filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * string * int * int * int * int * int * int * int * int * bool -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo2, image As ImageMoniker, filePath As String, startLine As Integer, startIndex As Integer, endLine As Integer, endIndex As Integer, idStartLine As Integer, idStartIndex As Integer, idEndLine As Integer, idEndIndex As Integer, isReadOnly As Boolean) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo2
定义用于将此结果显示给用户的属性。
- image
- ImageMoniker
表示的图像 IDocumentPeekResult 。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- startLine
- Int32
结果位置起始位置的行号。
- startIndex
- Int32
结果位置的起始位置的字符索引。
- endLine
- Int32
结果位置的结束位置的行号。
- endIndex
- Int32
结果位置的结束位置的字符索引。
- idStartLine
- Int32
结果的标识范围的起始位置的行号 (例如,方法的名称标记) 的位置。
- idStartIndex
- Int32
结果的标识范围的起始位置的字符索引 (例如,方法名称标记的位置) 。
- idEndLine
- Int32
结果标识范围的结束位置的行号。
- idEndIndex
- Int32
结果标识范围的结束位置的字符索引。
- isReadOnly
- Boolean
定义此结果是否为只读。
返回
的有效实例 IDocumentPeekResult 。
适用于
Create(IPeekResultDisplayInfo2, ImageMoniker, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Guid)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo2 ^ displayInfo, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker image, System::String ^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly, Guid editorDestination);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 displayInfo, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image, string filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly, Guid editorDestination);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * string * int * int * int * int * int * int * int * int * bool * Guid -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo2, image As ImageMoniker, filePath As String, startLine As Integer, startIndex As Integer, endLine As Integer, endIndex As Integer, idStartLine As Integer, idStartIndex As Integer, idEndLine As Integer, idEndIndex As Integer, isReadOnly As Boolean, editorDestination As Guid) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo2
定义用于将此结果显示给用户的属性。
- image
- ImageMoniker
表示的图像 IDocumentPeekResult 。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- startLine
- Int32
结果位置起始位置的行号。
- startIndex
- Int32
结果位置的起始位置的字符索引。
- endLine
- Int32
结果位置的结束位置的行号。
- endIndex
- Int32
结果位置的结束位置的字符索引。
- idStartLine
- Int32
结果的标识范围的起始位置的行号 (例如,方法的名称标记) 的位置。
- idStartIndex
- Int32
结果的标识范围的起始位置的字符索引 (例如,方法名称标记的位置) 。
- idEndLine
- Int32
结果标识范围的结束位置的行号。
- idEndIndex
- Int32
结果标识范围的结束位置的字符索引。
- isReadOnly
- Boolean
定义此结果是否为只读。
- editorDestination
- Guid
一个 Guid,表示 IDocumentPeekResult 应导航到的编辑器。
返回
的有效实例 IDocumentPeekResult 。
适用于
Create(IPeekResultDisplayInfo2, ImageMoniker, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Guid, Action<IPeekResult,Object,Object>)
创建 IPeekResult 基于文档中某个位置的的实例。
public:
Microsoft::VisualStudio::Language::Intellisense::IDocumentPeekResult ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekResultDisplayInfo2 ^ displayInfo, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker image, System::String ^ filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly, Guid editorDestination, Action<Microsoft::VisualStudio::Language::Intellisense::IPeekResult ^, System::Object ^, System::Object ^> ^ postNavigationCallback);
public Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult Create (Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 displayInfo, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image, string filePath, int startLine, int startIndex, int endLine, int endIndex, int idStartLine, int idStartIndex, int idEndLine, int idEndIndex, bool isReadOnly, Guid editorDestination, Action<Microsoft.VisualStudio.Language.Intellisense.IPeekResult,object,object> postNavigationCallback);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekResultDisplayInfo2 * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * string * int * int * int * int * int * int * int * int * bool * Guid * Action<Microsoft.VisualStudio.Language.Intellisense.IPeekResult, obj, obj> -> Microsoft.VisualStudio.Language.Intellisense.IDocumentPeekResult
Public Function Create (displayInfo As IPeekResultDisplayInfo2, image As ImageMoniker, filePath As String, startLine As Integer, startIndex As Integer, endLine As Integer, endIndex As Integer, idStartLine As Integer, idStartIndex As Integer, idEndLine As Integer, idEndIndex As Integer, isReadOnly As Boolean, editorDestination As Guid, postNavigationCallback As Action(Of IPeekResult, Object, Object)) As IDocumentPeekResult
参数
- displayInfo
- IPeekResultDisplayInfo2
定义用于将此结果显示给用户的属性。
- image
- ImageMoniker
表示的图像 IDocumentPeekResult 。
- filePath
- String
标识结果所在的文档的完全限定的文件路径。
- startLine
- Int32
结果位置起始位置的行号。
- startIndex
- Int32
结果位置的起始位置的字符索引。
- endLine
- Int32
结果位置的结束位置的行号。
- endIndex
- Int32
结果位置的结束位置的字符索引。
- idStartLine
- Int32
结果的标识范围的起始位置的行号 (例如,方法的名称标记) 的位置。
- idStartIndex
- Int32
结果的标识范围的起始位置的字符索引 (例如,方法名称标记的位置) 。
- idEndLine
- Int32
结果标识范围的结束位置的行号。
- idEndIndex
- Int32
结果标识范围的结束位置的字符索引。
- isReadOnly
- Boolean
定义此结果是否为只读。
- editorDestination
- Guid
一个 Guid,表示 IDocumentPeekResult 应导航到的编辑器。
- postNavigationCallback
- Action<IPeekResult,Object,Object>
向传递回调函数 IPeekResult 。
返回
的有效实例 IDocumentPeekResult 。