Export (0) Print
Expand All

JScriptCodeProvider Class

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

Provides access to instances of the JScript code generator and code compiler.

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

[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
public ref class JScriptCodeProvider sealed : public CodeDomProvider

The JScriptCodeProvider type exposes the following members.

  NameDescription
Public methodJScriptCodeProviderInitializes a new instance of the JScriptCodeProvider class.
Top

  NameDescription
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Public propertyFileExtensionGets the file name extension for JScript code files. (Overrides CodeDomProvider::FileExtension.)
Public propertyLanguageOptionsGets a language features identifier. (Inherited from CodeDomProvider.)
Public propertySiteGets or sets the ISite of the Component. (Inherited from Component.)
Top

  NameDescription
Public methodCompileAssemblyFromDomCompiles an assembly based on the System.CodeDom trees contained in the specified array of CodeCompileUnit objects, using the specified compiler settings. (Inherited from CodeDomProvider.)
Public methodCompileAssemblyFromFileCompiles an assembly from the source code contained in the specified files, using the specified compiler settings. (Inherited from CodeDomProvider.)
Public methodCompileAssemblyFromSourceCompiles an assembly from the specified array of strings containing source code, using the specified compiler settings. (Inherited from CodeDomProvider.)
Public methodCreateCompilerReturns an instance of the JScript code compiler. (Overrides CodeDomProvider::CreateCompiler().)
Public methodCreateEscapedIdentifierCreates an escaped identifier for the specified value. (Inherited from CodeDomProvider.)
Public methodCreateGenerator()Returns an instance of the JScript code generator. (Overrides CodeDomProvider::CreateGenerator().)
Public methodCreateGenerator(String)When overridden in a derived class, creates a new code generator using the specified file name for output. (Inherited from CodeDomProvider.)
Public methodCreateGenerator(TextWriter)When overridden in a derived class, creates a new code generator using the specified TextWriter for output. (Inherited from CodeDomProvider.)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodCreateParser Obsolete. When overridden in a derived class, creates a new code parser. (Inherited from CodeDomProvider.)
Public methodCreateValidIdentifierCreates a valid identifier for the specified value. (Inherited from CodeDomProvider.)
Public methodDispose()Releases all resources used by the Component. (Inherited from Component.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGenerateCodeFromCompileUnitGenerates code for the specified Code Document Object Model (CodeDOM) compilation unit and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.)
Public methodGenerateCodeFromExpressionGenerates code for the specified Code Document Object Model (CodeDOM) expression and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.)
Public methodGenerateCodeFromMemberGenerates code for the specified Code Document Object Model (CodeDOM) member declaration and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.)
Public methodGenerateCodeFromNamespaceGenerates code for the specified Code Document Object Model (CodeDOM) namespace and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.)
Public methodGenerateCodeFromStatementGenerates code for the specified Code Document Object Model (CodeDOM) statement and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.)
Public methodGenerateCodeFromTypeGenerates code for the specified Code Document Object Model (CodeDOM) type declaration and sends it to the specified text writer, using the specified options. (Inherited from CodeDomProvider.)
Public methodGetConverterGets a TypeConverter for the specified data type. (Inherited from CodeDomProvider.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetTypeOutputGets the type indicated by the specified CodeTypeReference. (Inherited from CodeDomProvider.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodIsValidIdentifierReturns a value that indicates whether the specified value is a valid identifier for the current language. (Inherited from CodeDomProvider.)
Public methodParseCompiles the code read from the specified text stream into a CodeCompileUnit. (Inherited from CodeDomProvider.)
Public methodSupportsReturns a value indicating whether the specified code generation support is provided. (Inherited from CodeDomProvider.)
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top

  NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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