Condividi tramite


Source.OnChangesCommitted Method

Called when a code snippet is committed to the source file.

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

Syntax

'Declaration
Public Overridable Sub OnChangesCommitted ( _
    reason As UInteger, _
    changedArea As TextSpan() _
)
public virtual void OnChangesCommitted(
    uint reason,
    TextSpan[] changedArea
)
public:
virtual void OnChangesCommitted(
    unsigned int reason, 
    array<TextSpan>^ changedArea
)
abstract OnChangesCommitted : 
        reason:uint32 * 
        changedArea:TextSpan[] -> unit  
override OnChangesCommitted : 
        reason:uint32 * 
        changedArea:TextSpan[] -> unit
public function OnChangesCommitted(
    reason : uint, 
    changedArea : TextSpan[]
)

Parameters

Implements

IVsFinalTextChangeCommitEvents.OnChangesCommitted(UInt32, array<TextSpan[])

Remarks

This method is an implementation of IVsFinalTextChangeCommitEvents' OnChangesCommitted method.

The base method adds the span to the dirty span list.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace