Context Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Represents JScript source code. This class belongs to the compilation and run-time state category.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

System.Object
  Microsoft.JScript.Context

public class Context

NameDescription
System_CAPS_pubpropertyEndColumn

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 whitespace at the start of the line.

System_CAPS_pubpropertyEndLine

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.

System_CAPS_pubpropertyEndPosition

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.

System_CAPS_pubpropertyStartColumn

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 whitespace at the start of the line.

System_CAPS_pubpropertyStartLine

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.

System_CAPS_pubpropertyStartPosition

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.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetCode()

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 whitespace.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetToken()

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.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: