Freigeben über


ContentTypeChangedEventArgs-Konstruktor

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    beforeSnapshot As ITextSnapshot, _
    afterSnapshot As ITextSnapshot, _
    beforeContentType As IContentType, _
    afterContentType As IContentType, _
    editTag As Object _
)
public ContentTypeChangedEventArgs(
    ITextSnapshot beforeSnapshot,
    ITextSnapshot afterSnapshot,
    IContentType beforeContentType,
    IContentType afterContentType,
    Object editTag
)
public:
ContentTypeChangedEventArgs(
    ITextSnapshot^ beforeSnapshot, 
    ITextSnapshot^ afterSnapshot, 
    IContentType^ beforeContentType, 
    IContentType^ afterContentType, 
    Object^ editTag
)
new : 
        beforeSnapshot:ITextSnapshot * 
        afterSnapshot:ITextSnapshot * 
        beforeContentType:IContentType * 
        afterContentType:IContentType * 
        editTag:Object -> ContentTypeChangedEventArgs
public function ContentTypeChangedEventArgs(
    beforeSnapshot : ITextSnapshot, 
    afterSnapshot : ITextSnapshot, 
    beforeContentType : IContentType, 
    afterContentType : IContentType, 
    editTag : Object
)

Parameter

  • editTag
    Typ: Object

    Ein beliebiges Objekt, das dieser Änderung zugeordnet ist.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Eines der beforeSnapshot, afterSnapshot, beforeContentTypeoder afterContentType ist nullein Nullverweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

ContentTypeChangedEventArgs Klasse

Microsoft.VisualStudio.Text-Namespace