共用方式為


AuthoringSink(ParseReason, Int32, Int32, Int32) Constructor

Definition

Initializes the AuthoringSink class.

public:
 AuthoringSink(Microsoft::VisualStudio::Package::ParseReason reason, int line, int col, int maxErrors);
public:
 AuthoringSink(Microsoft::VisualStudio::Package::ParseReason reason, int line, int col, int maxErrors);
 AuthoringSink(Microsoft::VisualStudio::Package::ParseReason reason, int line, int col, int maxErrors);
public AuthoringSink (Microsoft.VisualStudio.Package.ParseReason reason, int line, int col, int maxErrors);
new Microsoft.VisualStudio.Package.AuthoringSink : Microsoft.VisualStudio.Package.ParseReason * int * int * int -> Microsoft.VisualStudio.Package.AuthoringSink
Public Sub New (reason As ParseReason, line As Integer, col As Integer, maxErrors As Integer)

Parameters

reason
ParseReason

[in] The reason for the parse given as a value from the ParseReason enumeration.

line
Int32

[in] The line number the parse started on.

col
Int32

[in] The offset into the line the parse started on.

maxErrors
Int32

[in] The maximum number of errors that are to be returned from the parser.

Remarks

You must call the base class constructor in your constructor if you derive from this class.

Applies to