Compartilhar via


ContentTypeChangedEventArgs Constructor

Initializes a new instance of ContentTypeChangedEventArgs with the specified before and after snapshots and before and after content types.

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
)

Parameters

  • editTag
    Type: Object

    An arbitrary object associated with this change.

Exceptions

Exception Condition
ArgumentNullException

One of beforeSnapshot, afterSnapshot, beforeContentType, or afterContentType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ContentTypeChangedEventArgs Class

Microsoft.VisualStudio.Text Namespace