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
'Déclaration
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.ITextSnapshot
The most recent ITextSnapshot before the change occurred.
- afterSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The ITextSnapshot immediately after the change occurred.
- beforeContentType
Type: Microsoft.VisualStudio.Utilities.IContentType
The IContentType before the change occurred.
- afterContentType
Type: Microsoft.VisualStudio.Utilities.IContentType
The IContentType after the change occurred.
- editTag
Type: System.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
- 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.