JScript
別名:JScriptプログラミング言語,Microsoft JScript
JScriptとは、Microsoftが開発したスクリプト言語である。JScriptが書かれたファイルには拡張子として「.js」が付く。
JScriptは、JavaScriptのMicrosoftによる実装であるといえる。JavaScriptと互換性のある部分も持つが、仕様の異なる部分も多い。JScriptが独自に持つ機能としては、WSH(Windows Scripting Host)やIIS(Internet Information Services)のように、Windowsの機能に合わせて追加された機能がある。
JScriptとJavaScriptは、後に「ECMAScript」と呼ばれる標準規格が策定されたことにより、共通して利用できる仕様としてまとめられている。
参照リンク
JScript - (Microsoft MSDN オンライン)
スクリプト言語: | ブックマークレット IronPython JavaScript JScript JSON Jython LunaScript |
Microsoft.JScript 名前空間
Microsoft.JScript 名前空間には、JScript 言語を使用したコンパイルとコード生成をサポートするクラスもあります。
クラス
クラス | 説明 | |
---|---|---|
![]() | ActivationObject | |
![]() | ActiveXObjectConstructor | |
![]() | ArgumentsObject | |
![]() | ArrayConstructor | |
![]() | ArrayLiteral | |
![]() | ArrayObject | |
![]() | ArrayPrototype | |
![]() | ArrayWrapper | |
![]() | AssemblyCustomAttributeList | |
![]() | AST | |
![]() | ASTList | |
![]() | BinaryOp | |
![]() | Binding | |
![]() | BitwiseBinary | |
![]() | Block | |
![]() | BlockScope | |
![]() | BooleanConstructor | |
![]() | BooleanObject | |
![]() | BooleanPrototype | |
![]() | BreakOutOfFinally | |
![]() | Closure | |
![]() | CmdLineException | |
![]() | CmdLineOptionParser | |
![]() | COMCharStream | |
![]() | COMFieldInfo | |
![]() | COMMethodInfo | |
![]() | COMPropertyInfo | |
![]() | Context | |
![]() | ContinueOutOfFinally | |
![]() | Convert | |
![]() | DateConstructor | |
![]() | DateObject | |
![]() | DatePrototype | |
![]() | DebugBreak | |
![]() | DebugConvert | |
![]() | DocumentContext | |
![]() | DynamicFieldInfo | |
![]() | Empty | |
![]() | EndOfFile | |
![]() | EnumeratorConstructor | |
![]() | EnumeratorObject | |
![]() | EnumeratorPrototype | |
![]() | Equality | |
![]() | ErrorConstructor | |
![]() | ErrorObject | |
![]() | ErrorPrototype | |
![]() | Eval | |
![]() | EvalErrorObject | |
![]() | Expando | |
![]() | FieldAccessor | |
![]() | ForIn | |
![]() | FunctionConstructor | |
![]() | FunctionDeclaration | |
![]() | FunctionExpression | |
![]() | FunctionObject | |
![]() | FunctionPrototype | |
![]() | FunctionWrapper | |
![]() | GlobalObject | |
![]() | Globals | |
![]() | GlobalScope | |
![]() | Hide | |
![]() | Import | |
![]() | In | |
![]() | Instanceof | |
![]() | JSAuthor | |
![]() | JSConstructor | |
![]() | JScriptCodeProvider | JScript コード ジェネレータと JScript コード コンパイラのインスタンスへのアクセスを提供します。 |
![]() | JScriptException | |
![]() | JSField | |
![]() | JSFieldInfo | |
![]() | JSFunctionAttribute | |
![]() | JSLocalField | |
![]() | JSMethod | |
![]() | JSMethodInfo | |
![]() | JSObject | |
![]() | JSParser | |
![]() | JSPrototypeObject | |
![]() | JSScanner | |
![]() | JSVariableField | |
![]() | LateBinding | |
![]() | LenientArrayPrototype | |
![]() | LenientBooleanPrototype | |
![]() | LenientDateConstructor | |
![]() | LenientDatePrototype | |
![]() | LenientEnumeratorPrototype | |
![]() | LenientErrorPrototype | |
![]() | LenientFunctionPrototype | |
![]() | LenientGlobalObject | |
![]() | LenientMathObject | |
![]() | LenientNumberPrototype | |
![]() | LenientObjectPrototype | |
![]() | LenientRegExpPrototype | |
![]() | LenientStringConstructor | |
![]() | LenientStringPrototype | |
![]() | LenientVBArrayPrototype | |
![]() | MathObject | |
![]() | MemberInfoList | |
![]() | MethodInvoker | |
![]() | Missing | |
![]() | Namespace | |
![]() | NoContextException | |
![]() | NotRecommended | |
![]() | NumberConstructor | |
![]() | NumberObject | |
![]() | NumberPrototype | |
![]() | NumericBinary | |
![]() | NumericUnary | |
![]() | ObjectConstructor | |
![]() | ObjectPrototype | |
![]() | Override | |
![]() | Package | |
![]() | ParserException | |
![]() | Plus | |
![]() | PostOrPrefixOperator | |
![]() | RangeErrorObject | |
![]() | ReferenceAttribute | |
![]() | ReferenceErrorObject | |
![]() | RegExpConstructor | |
![]() | RegExpMatch | |
![]() | RegExpObject | |
![]() | RegExpPrototype | |
![]() | Relational | |
![]() | ReturnOutOfFinally | |
![]() | Runtime | |
![]() | ScriptBlock | |
![]() | ScriptFunction | |
![]() | ScriptObject | |
![]() | ScriptStream | |
![]() | SimpleHashtable | |
![]() | StackFrame | |
![]() | StrictEquality | |
![]() | StringConstructor | |
![]() | StringObject | |
![]() | StringPrototype | |
![]() | SuperTypeMembersSorter | |
![]() | SyntaxErrorObject | |
![]() | Throw | |
![]() | Try | |
![]() | TypedArray | |
![]() | TypeErrorObject | |
![]() | Typeof | |
![]() | TypeReflector | |
![]() | UnaryOp | |
![]() | URIErrorObject | |
![]() | VBArrayConstructor | |
![]() | VBArrayObject | |
![]() | VBArrayPrototype | |
![]() | VsaItem | |
![]() | VsaItems | |
![]() | With |

インターフェイス | 説明 | |
---|---|---|
![]() | COMMemberInfo | メンバの値を表すオブジェクトによって実装されます。これにより、呼び出し元はその値に関するアクションを実行できます。この値は、Call メソッドによって関数として呼び出したり、GetValue メソッドによって取得したり、SetValue メソッドを使用して設定したりできます。 |
![]() | IActivationObject | |
![]() | IAuthorServices | |
![]() | IColorizeText | |
![]() | IDebugConvert | オブジェクトをプリミティブ値に変換したり、プリミティブ値を文字列に変換したり、JScript エラー コードに関連付けられているエラー メッセージを取得したりする、一連のユーティリティ メソッドを定義します。 |
![]() | IDebugConvert2 | クライアントは、JScript 変換セマンティクスを使用して 10 進値を文字列に変換できます。 |
![]() | IDebuggerObject | JScript オブジェクトを直接実装している COM オブジェクトまたはマネージ JScript オブジェクトに対してプロキシとして機能する COM オブジェクトを、JScript ランタイムで検出して処理できます。 |
![]() | IDebugScriptScope | VSA エンジンによって実装されます。その単一のメソッドを使用すると、呼び出し元はグローバル スコープに関連付けられた "this" 値を設定できます。 |
![]() | IDebugType | 型または JScript コンストラクタを直接実装している COM オブジェクト、あるいはマネージ型またはマネージ JScript コンストラクタに対するプロキシとして機能する COM オブジェクトを JScript ランタイムで検出して処理できます。 |
![]() | IDebugVsaScriptCodeItem | 通常、コード ブロックを表すオブジェクトで実装されます (コード ブロックは、VSA エンジンからスコープ オブジェクトを取得し、AddItem を呼び出して、スクリプト ブロック、式、またはステートメントをスコープに追加すると作成できます)。一般にこれは、たとえばウォッチ ウィンドウ内の式の評価や、string として表現されるブレークポイントに関する情報の解析に必要なデバッガによって呼び出されます。 |
![]() | IDefineEvent | |
![]() | IEngine2 | エンジンによって実装されます。これは、JScript エンジンに用意されている追加の機能を使用するインターフェイスを提供します。 |
![]() | IErrorHandler | |
![]() | IMessageReceiver | JScript ランタイムで、組み込みの印刷機能に渡す文字列を出力するために使用するインターフェイスを定義します。 |
![]() | IMethodsCompletionInfo | |
![]() | INeedEngine | |
![]() | IObjectCompletionInfo | |
![]() | IParseText | |
![]() | IRedirectOutput | 呼び出し元は、JScript に組み込まれた print 関数に渡す文字列の表示に使用する IMessageReceiver を設定できます。 |
![]() | ISite2 | |
![]() | ITokenColorInfo | |
![]() | ITokenEnumerator | |
![]() | IVsaFullErrorInfo | |
![]() | IVsaScriptCodeItem | |
![]() | IVsaScriptScope | スコープ オブジェクトを表します。VSA エンジンのグローバル スコープ オブジェクトはこのインターフェイスを実装しています。これは、VSA エンジンで GetGlobalScope を呼び出すと取得できます。既存のスコープ オブジェクトで GetItem を呼び出すと、新しいサブスコープを作成することもできます。 |
![]() | IWrappedMember | |
![]() | MemberInfoInitializer | メンバの名前およびそのメンバに格納されている値を表すオブジェクトを使用して、COMFieldInfo、COMMethodInfo、および COMPropertyInfo のインスタンスを初期化します。このオブジェクトは、GetCOMMemberInfo を使用すると取得できます。 |

列挙体 | 説明 | |
---|---|---|
![]() | CmdLineError | |
![]() | ErrorType | |
![]() | JSBuiltin | |
![]() | JSError | JScript エラー メッセージに関連付けられたエラー コードを格納します。 |
![]() | JSFunctionAttributeEnum | JSFunctionAttribute カスタム属性で使用して、JScript コンパイラで生成される関数の呼び出し規約に注釈を付けます。パラメータは HasArguments、HasEngine、および HasThisObject に暗黙的に関連付けられ、JScript コードで関数を呼び出すときに JScript ランタイムによって自動的に渡されます。 |
![]() | JSToken | |
![]() | SourceState | |
![]() | TokenColor | |
![]() | VSAITEMTYPE2 | JScript 実装は、VSAITEMTYPE2 列挙値を受け入れ、VsaItemType 項目を拒否します。詳細については、「AddItem」を参照してください。 |
「Microsoft JScript」の例文・使い方・用例・文例
- Microsoft.JScriptのページへのリンク