CompletionSet.OnCommitText Property

Gets the text that is to be committed to the source file.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
Public ReadOnly Property OnCommitText As String
'使用
Dim instance As CompletionSet
Dim value As String

value = instance.OnCommitText
public string OnCommitText { get; }
public:
property String^ OnCommitText {
    String^ get ();
}
public function get OnCommitText () : String

Property Value

Type: System.String

The text if there is anything to commit, otherwise a null reference (Nothing in Visual Basic).

Remarks

This property returns the value that was determined in a call to the OnCommit method. It is typically used to discover what text was actually inserted after the insertion has taken place.

Permissions

See Also

Reference

CompletionSet Class

CompletionSet Members

Microsoft.VisualStudio.Package Namespace