次の方法で共有


Colorizer.GetStartState Method

Returns the initial parsing state.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
Public Overridable Function GetStartState ( _
    <OutAttribute> ByRef start As Integer _
) As Integer
'使用
Dim instance As Colorizer
Dim start As Integer
Dim returnValue As Integer

returnValue = instance.GetStartState(start)
public virtual int GetStartState(
    out int start
)
public:
virtual int GetStartState(
    [OutAttribute] int% start
)
abstract GetStartState : 
        start:int byref -> int 
override GetStartState : 
        start:int byref -> int 
public function GetStartState(
    start : int
) : int

Parameters

  • start
    Type: System.Int32%
    [out] Returns the initial parsing state.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsColorizer.GetStartState(Int32%)

Remarks

This method returns the initial parsing state, which could be obtained from the IScanner object. This state is passed into and out of the parser through various methods but it is the parser that maintains the actual value.

This method is an implementation of GetStartState.

The base method always returns 0.

.NET Framework Security

See Also

Reference

Colorizer Class

Colorizer Members

Microsoft.VisualStudio.Package Namespace