Share via


CompletionSet.OnCommitText Property

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public ReadOnly Property OnCommitText As String
public string OnCommitText { get; }
public:
property String^ OnCommitText {
    String^ get ();
}
member OnCommitText : string with get
function get OnCommitText () : String

Property Value

Type: System.String
The text if there is anything to commit, otherwise nulla 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.

.NET Framework Security

See Also

Reference

CompletionSet Class

Microsoft.VisualStudio.Package Namespace