TextContentChangingEventArgs Constructor
Initializes a new instance of TextContentChangingEventArgs to be passed during a Changing event.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Déclaration
Public Sub New ( _
beforeSnapshot As ITextSnapshot, _
editTag As Object, _
cancelAction As Action(Of TextContentChangingEventArgs) _
)
public TextContentChangingEventArgs(
ITextSnapshot beforeSnapshot,
Object editTag,
Action<TextContentChangingEventArgs> cancelAction
)
public:
TextContentChangingEventArgs(
ITextSnapshot^ beforeSnapshot,
Object^ editTag,
Action<TextContentChangingEventArgs^>^ cancelAction
)
new :
beforeSnapshot:ITextSnapshot *
editTag:Object *
cancelAction:Action<TextContentChangingEventArgs> -> TextContentChangingEventArgs
public function TextContentChangingEventArgs(
beforeSnapshot : ITextSnapshot,
editTag : Object,
cancelAction : Action<TextContentChangingEventArgs>
)
Parameters
- beforeSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The most recent ITextSnapshot before the change.
- editTag
Type: System.Object
An arbitrary object associated with this change.
- cancelAction
Type: System.Action<TextContentChangingEventArgs>
The action to execute when Cancel is called. Invoked at most once.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | beforeSnapshot is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.