ContentTypeChangedEventArgs(ITextSnapshot, ITextSnapshot, IContentType, IContentType, Object) Konstruktor

Definition

Initialisiert eine neue Instanz von ContentTypeChangedEventArgs mit den angegebenen Vorher- und Nachher-Momentaufnahmen und Vorher- und Nachher-Inhaltstypen.

public:
 ContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ afterSnapshot, Microsoft::VisualStudio::Utilities::IContentType ^ beforeContentType, Microsoft::VisualStudio::Utilities::IContentType ^ afterContentType, System::Object ^ editTag);
public:
 ContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ afterSnapshot, Microsoft::VisualStudio::Utilities::IContentType ^ beforeContentType, Microsoft::VisualStudio::Utilities::IContentType ^ afterContentType, Platform::Object ^ editTag);
 ContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot const & beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & afterSnapshot, Microsoft::VisualStudio::Utilities::IContentType const & beforeContentType, Microsoft::VisualStudio::Utilities::IContentType const & afterContentType, winrt::Windows::Foundation::IInspectable const & editTag);
public ContentTypeChangedEventArgs (Microsoft.VisualStudio.Text.ITextSnapshot beforeSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot afterSnapshot, Microsoft.VisualStudio.Utilities.IContentType beforeContentType, Microsoft.VisualStudio.Utilities.IContentType afterContentType, object editTag);
new Microsoft.VisualStudio.Text.ContentTypeChangedEventArgs : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Utilities.IContentType * Microsoft.VisualStudio.Utilities.IContentType * obj -> Microsoft.VisualStudio.Text.ContentTypeChangedEventArgs
Public Sub New (beforeSnapshot As ITextSnapshot, afterSnapshot As ITextSnapshot, beforeContentType As IContentType, afterContentType As IContentType, editTag As Object)

Parameter

beforeSnapshot
ITextSnapshot

Der letzte ITextSnapshot vor der Änderung.

afterSnapshot
ITextSnapshot

Der ITextSnapshot unmittelbar nach der Änderung.

beforeContentType
IContentType

Der IContentType vor der Änderung.

afterContentType
IContentType

Der IContentType nach der Änderung.

editTag
Object

Ein beliebiges Objekt, das dieser Änderung zugeordnet ist.

Ausnahmen

Eine von beforeSnapshot , afterSnapshot , beforeContentType oder afterContentType ist NULL.

Gilt für