共用方式為


SuggestionServiceBase.TryUpdateProposal(ITextView, ProposalBase) 方法

定義

嘗試更新 proposal 檢視和基礎緩衝區的任何變更。

public virtual Microsoft.VisualStudio.Language.Proposals.ProposalBase? TryUpdateProposal (Microsoft.VisualStudio.Text.Editor.ITextView view, Microsoft.VisualStudio.Language.Proposals.ProposalBase proposal);
abstract member TryUpdateProposal : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Language.Proposals.ProposalBase -> Microsoft.VisualStudio.Language.Proposals.ProposalBase
override this.TryUpdateProposal : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Language.Proposals.ProposalBase -> Microsoft.VisualStudio.Language.Proposals.ProposalBase
Public Overridable Function TryUpdateProposal (view As ITextView, proposal As ProposalBase) As ProposalBase

參數

view
ITextView
proposal
ProposalBase

傳回

如果變更與 proposal不相容,則為更新提案或 Null。

備註

必須從UI線程呼叫。

適用於