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
beforeSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshotThe most recent ITextSnapshot before the change occurred.
afterSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshotThe ITextSnapshot immediately after the change occurred.
beforeContentType
Type: Microsoft.VisualStudio.Utilities.IContentTypeThe IContentType before the change occurred.
afterContentType
Type: Microsoft.VisualStudio.Utilities.IContentTypeThe IContentType after the change occurred.
editTag
Type: System.ObjectAn 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
- 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.