Initializes a new instance of Completion2 with the specified text and icon.
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Sub New ( _
displayText As String, _
insertionText As String, _
description As String, _
iconSource As ImageSource, _
iconAutomationText As String, _
attributeIcons As IEnumerable(Of CompletionIcon) _
)
public Completion2(
string displayText,
string insertionText,
string description,
ImageSource iconSource,
string iconAutomationText,
IEnumerable<CompletionIcon> attributeIcons
)
public:
Completion2(
String^ displayText,
String^ insertionText,
String^ description,
ImageSource^ iconSource,
String^ iconAutomationText,
IEnumerable<CompletionIcon^>^ attributeIcons
)
new :
displayText:string *
insertionText:string *
description:string *
iconSource:ImageSource *
iconAutomationText:string *
attributeIcons:IEnumerable<CompletionIcon> -> Completion2
public function Completion2(
displayText : String,
insertionText : String,
description : String,
iconSource : ImageSource,
iconAutomationText : String,
attributeIcons : IEnumerable<CompletionIcon>
)
参数
displayText
类型:StringThe text that is to be displayed by an IntelliSense presenter.
insertionText
类型:StringThe text that is to be inserted into the buffer if this completion is committed.
description
类型:StringA description that could be displayed with the display text of the completion.
iconSource
类型:ImageSourceThe icon to describe the completion item.
iconAutomationText
类型:StringThe automation name for the icon.
attributeIcons
类型:IEnumerable<CompletionIcon>Additional icons shown to the right of the DisplayText.
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。