IColorizeText.GetStateForText(String, SourceState) Methode

Definitie

Wanneer deze wordt geïmplementeerd in een klasse, scant u de opgegeven broncode voor afzonderlijke code-eenheden en identificeert u de status (normaal, opmerking, tekenreeks) van de opgegeven code.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

public:
 Microsoft::JScript::SourceState GetStateForText(System::String ^ sourceCode, Microsoft::JScript::SourceState currentState);
public Microsoft.JScript.SourceState GetStateForText(string sourceCode, Microsoft.JScript.SourceState currentState);
abstract member GetStateForText : string * Microsoft.JScript.SourceState -> Microsoft.JScript.SourceState
Public Function GetStateForText (sourceCode As String, currentState As SourceState) As SourceState

Parameters

sourceCode
String

De broncode die moet worden geanalyseerd.

currentState
SourceState

De huidige status (normaal, opmerking, tekenreeks) van de broncode.

Retouren

De status van de broncode.

Van toepassing op

Zie ook