AuthoringSink Constructor
Initializes the AuthoringSink class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
声明
Public Sub New ( _
reason As ParseReason, _
line As Integer, _
col As Integer, _
maxErrors As Integer _
)
用法
Dim reason As ParseReason
Dim line As Integer
Dim col As Integer
Dim maxErrors As Integer
Dim instance As New AuthoringSink(reason, _
line, col, maxErrors)
public AuthoringSink(
ParseReason reason,
int line,
int col,
int maxErrors
)
public:
AuthoringSink(
ParseReason reason,
int line,
int col,
int maxErrors
)
new :
reason:ParseReason *
line:int *
col:int *
maxErrors:int -> AuthoringSink
public function AuthoringSink(
reason : ParseReason,
line : int,
col : int,
maxErrors : int
)
Parameters
- reason
Type: Microsoft.VisualStudio.Package.ParseReason
[in] The reason for the parse given as a value from the ParseReason enumeration.
- line
Type: System.Int32
[in] The line number the parse started on.
- col
Type: System.Int32
[in] The offset into the line the parse started on.
- maxErrors
Type: System.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.
.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.