Context Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents JScript source code. This class belongs to the compilation and run-time state category.
This API supports the product infrastructure and is not intended to be used directly from your code.
public ref class Context
public class Context
type Context = class
Public Class Context
- Inheritance
-
Context
Remarks
This class is used mainly by the JSScanner and the JSParser to read source code. For more information, see Create a Language Compiler for the .NET Framework.
Properties
EndColumn |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the column number in the line where this code ends. This includes white space at the start of the line. |
EndLine |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the ending line number of this code. |
EndPosition |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the position in the code string where this code ends, because all lines of code are stored in a single string. |
StartColumn |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the column number in the line where this code starts. This includes white space at the start of the line. |
StartLine |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the line number where this code starts. |
StartPosition |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the position in the code string where this code starts, because all lines of code are stored in a single string. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetCode() |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the code that the context contains, discarding any white space. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetToken() |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets an individual unit of code, or a token, that the context contains. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
See also
.NET