JSError JSError JSError JSError Enum

定义

指定 JScript 错误消息。Specifies the JScript error messages. 此类属于编译和运行时状态类别。This class belongs to the compilation and run-time state category.

此 API 支持产品基础结构,不能在代码中直接使用。

public enum class JSError
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("268CA962-2FEF-3152-BA46-E18658B7FA4F")]
public enum JSError
type JSError = 
Public Enum JSError
继承
属性

字段

AbstractCannotBePrivate AbstractCannotBePrivate AbstractCannotBePrivate AbstractCannotBePrivate 1157

抽象方法不能是私有的。An abstract method cannot be private.

AbstractCannotBeStatic AbstractCannotBeStatic AbstractCannotBeStatic AbstractCannotBeStatic 1216

静态方法不能是抽象的。Static methods cannot be abstract.

AbstractWithBody AbstractWithBody AbstractWithBody AbstractWithBody 1192

抽象函数不能具有函数体。An abstract function cannot have a body.

ActionNotSupported ActionNotSupported ActionNotSupported ActionNotSupported 445

对象不支持此操作。The object does not support this action.

AmbiguousBindingBecauseOfEval AmbiguousBindingBecauseOfEval AmbiguousBindingBecauseOfEval AmbiguousBindingBecauseOfEval 1150

Eval 的存在使此名称的使用不明确。The presence of Eval has made the use of this name ambiguous.

AmbiguousBindingBecauseOfWith AmbiguousBindingBecauseOfWith AmbiguousBindingBecauseOfWith AmbiguousBindingBecauseOfWith 1149

With 语句使此名称的使用不明确。The With statement has made the use of this name ambiguous.

AmbiguousConstructorCall AmbiguousConstructorCall AmbiguousConstructorCall AmbiguousConstructorCall 1184

多个构造函数与此参数列表匹配。More than one constructor matches this parameter list.

AmbiguousMatch AmbiguousMatch AmbiguousMatch AmbiguousMatch 1183

多个方法或属性与此参数列表匹配。More than one method or property matches this parameter list.

ArrayLengthAssignIncorrect ArrayLengthAssignIncorrect ArrayLengthAssignIncorrect ArrayLengthAssignIncorrect 5030

必须为数组长度赋予一个有限的正数。Array length must be assigned a finite positive number.

ArrayLengthConstructIncorrect ArrayLengthConstructIncorrect ArrayLengthConstructIncorrect ArrayLengthConstructIncorrect 5029

数组长度必须为有限的正整数。Array length must be a finite positive integer.

ArrayMayBeCopied ArrayMayBeCopied ArrayMayBeCopied ArrayMayBeCopied 1215

将 JScript 数组赋值给 Array 可能导致该数组被复制。Assigning a JScript array to a Array may cause the array to be copied.

AssemblyAttributesMustBeGlobal AssemblyAttributesMustBeGlobal AssemblyAttributesMustBeGlobal AssemblyAttributesMustBeGlobal 1249

程序集自定义特性不能属于其他构造。Assembly custom attributes cannot be part of another construct.

AssignmentToReadOnly AssignmentToReadOnly AssignmentToReadOnly AssignmentToReadOnly 5040

无法为只读字段或属性赋值。Cannot assign to read-only field or property.

BadBreak BadBreak BadBreak BadBreak 1019

循环外不能有 breakCannot have break outside the loop.

BadContinue BadContinue BadContinue BadContinue 1020

循环外不能有 continueCannot have continue outside the loop.

BadFunctionDeclaration BadFunctionDeclaration BadFunctionDeclaration BadFunctionDeclaration 1199

可能存在无效函数声明、缺少函数或有未识别语法错误。Possible invalid function declaration, function missing, or unrecognized syntax error.

BadHexDigit BadHexDigit BadHexDigit BadHexDigit 1023

应为十六进制数字。Expected hexadecimal digit.

BadLabel BadLabel BadLabel BadLabel 1025

已存在具有该名称的标签。There is already a label that has that name.

BadModifierInInterface BadModifierInInterface BadModifierInInterface BadModifierInInterface 1224

不能对接口成员使用此修饰符。This modifier cannot be used on an interface member.

BadOctalLiteral BadOctalLiteral BadOctalLiteral BadOctalLiteral 1242

格式错误的八进制文本已按十进制文本处理。Malformed octal literal treated as decimal literal.

BadPropertyDeclaration BadPropertyDeclaration BadPropertyDeclaration BadPropertyDeclaration 1200

属性声明无效。Invalid property declaration. get 访问器不能有参数,而 set 访问器必须有一个参数。The get accessor must not have arguments and the set accessor must have one argument.

BadReturn BadReturn BadReturn BadReturn 1018

Return 语句不能出现在函数外。Return statement cannot appear outside the function.

BadSwitch BadSwitch BadSwitch BadSwitch 1103

缺少 casedefault 语句。Missing case or default statement.

BadThrow BadThrow BadThrow BadThrow 1239

throw 语句必须具有参数,除非它位于 catch 语句的 try 块内。A throw statement must have an argument unless it is inside the catch block of a try statement.

BadVariableDeclaration BadVariableDeclaration BadVariableDeclaration BadVariableDeclaration 1198

可能存在无效变量声明、缺少 var 或有未识别语法错误。Possible invalid variable declaration, var missing, or unrecognized syntax error.

BadWayToLeaveFinally BadWayToLeaveFinally BadWayToLeaveFinally BadWayToLeaveFinally 1190

这样处理 finally 块运行速度慢并且可能导致混乱。It is slow and potentially confusing to leave a finally block this way.

BaseClassIsExpandoAlready BaseClassIsExpandoAlready BaseClassIsExpandoAlready BaseClassIsExpandoAlready 1156

某个基类已标记为 Expando;当前规范将被忽略。A base class is already marked Expando; current specification will be ignored.

BooleanExpected BooleanExpected BooleanExpected BooleanExpected 5010

找不到任何布尔值。No Boolean value found.

CannotAssignToFunctionResult CannotAssignToFunctionResult CannotAssignToFunctionResult CannotAssignToFunctionResult 5003

无法为函数结果赋值。Cannot assign to a function result.

CannotBeAbstract CannotBeAbstract CannotBeAbstract CannotBeAbstract 1212

除非类被标记为抽象类,否则不能为抽象类。Cannot be abstract unless class is marked as abstract.

CannotCallSecurityMethodLateBound CannotCallSecurityMethodLateBound CannotCallSecurityMethodLateBound CannotCallSecurityMethodLateBound 5044

不能使用后期绑定调用 Deny()PermitOnly()Assert() 安全方法。The Deny(), PermitOnly(), and Assert() security methods cannot be called using late binding.

CannotChangeVisibility CannotChangeVisibility CannotChangeVisibility CannotChangeVisibility 1171

不能更改基方法的可见性规范。Cannot change visibility specification of a base method.

CannotInstantiateAbstractClass CannotInstantiateAbstractClass CannotInstantiateAbstractClass CannotInstantiateAbstractClass 1214

不可能构造抽象类的实例。It is not possible to construct an instance of an abstract class.

CannotNestPositionDirective CannotNestPositionDirective CannotNestPositionDirective CannotNestPositionDirective 1119

必须结束一个位置指令才能开始新的指令。Position directive must be ended before a new one can be started.

CannotReturnValueFromVoidFunction CannotReturnValueFromVoidFunction CannotReturnValueFromVoidFunction CannotReturnValueFromVoidFunction 1182

无法从 void 函数或构造函数返回值。Cannot return a value from a void function or constructor.

CannotUseNameOfClass CannotUseNameOfClass CannotUseNameOfClass CannotUseNameOfClass 1124

只有构造函数可以与其所在的类同名。Only a constructor function can have the same name as the class it appears in.

CannotUseStaticSecurityAttribute CannotUseStaticSecurityAttribute CannotUseStaticSecurityAttribute CannotUseStaticSecurityAttribute 5045

JScript 不支持静态安全特性。JScript does not support static security attributes.

CantAssignThis CantAssignThis CantAssignThis CantAssignThis 5000

无法为 this 赋值。Cannot assign to this.

CantCreateObject CantCreateObject CantCreateObject CantCreateObject 429

无法创建对象。Cannot create object.

CcInvalidElif CcInvalidElif CcInvalidElif CcInvalidElif 1106

@elif 不匹配;未定义 @ifUnmatched @elif; no @if defined.

CcInvalidElse CcInvalidElse CcInvalidElse CcInvalidElse 1105

@else 不匹配;未定义 @ifUnmatched @else; no @if defined.

CcInvalidEnd CcInvalidEnd CcInvalidEnd CcInvalidEnd 1104

@end 不匹配;未定义 @ifUnmatched @end; no @if defined.

CcInvalidInDebugger CcInvalidInDebugger CcInvalidInDebugger CcInvalidInDebugger 1256

不能在调试器中使用条件编译指令和变量。Conditional compilation directives and variables cannot be used in the debugger.

CcOff CcOff CcOff CcOff 1030

条件编译已关闭。Conditional compilation is turned off.

CircularDefinition CircularDefinition CircularDefinition CircularDefinition 1120

循环定义。Circular definition.

ClashWithProperty ClashWithProperty ClashWithProperty ClashWithProperty 1177

字段的名称与属性的名称冲突。The name of the field conflicts with the name of the property.

ClassNotAllowed ClassNotAllowed ClassNotAllowed ClassNotAllowed 1109

此上下文中不允许有类定义。Class definition not allowed in this context.

ConstructorMayNotHaveReturnType ConstructorMayNotHaveReturnType ConstructorMayNotHaveReturnType ConstructorMayNotHaveReturnType 1233

构造函数不能有返回类型。A constructor cannot have a return type.

CustomAttributeUsedMoreThanOnce CustomAttributeUsedMoreThanOnce CustomAttributeUsedMoreThanOnce CustomAttributeUsedMoreThanOnce 1236

此类型的特性必须是唯一的。This type of attribute must be unique.

DateExpected DateExpected DateExpected DateExpected 5006

应为日期对象。Date object expected.

DelegatesShouldNotBeExplicitlyConstructed DelegatesShouldNotBeExplicitlyConstructed DelegatesShouldNotBeExplicitlyConstructed DelegatesShouldNotBeExplicitlyConstructed 1258

委托不应显式构造;只需使用该方法名称即可。Delegates should not be explicitly constructed; simply use the method name.

Deprecated Deprecated Deprecated Deprecated 1121

指定的类型已被否决。The specified type is deprecated.

DifferentReturnTypeFromBase DifferentReturnTypeFromBase DifferentReturnTypeFromBase DifferentReturnTypeFromBase 1176

基类中的方法具有不同的返回类型。Method in base has a different return type.

DoesNotHaveAnAddress DoesNotHaveAnAddress DoesNotHaveAnAddress DoesNotHaveAnAddress 1203

表达式不包含地址。Expression does not have an address.

DupDefault DupDefault DupDefault DupDefault 1027

default 只能在 switch 语句中出现一次。default can appear only once in a switch statement.

DuplicateMethod DuplicateMethod DuplicateMethod DuplicateMethod 1251

此方法与此类中的另一种方法具有相同的名称、参数类型和返回类型。This method has the same name, parameter types, and return type as another method in this class.

DuplicateName DuplicateName DuplicateName DuplicateName 1111

标识符已在使用中。Identifier already in use.

DuplicateNamedParameter DuplicateNamedParameter DuplicateNamedParameter DuplicateNamedParameter 5036

重复的命名参数。Duplicate named parameter.

DupVisibility DupVisibility DupVisibility DupVisibility 1101

可见性修饰符已定义。Visibility modifier already defined.

EnumeratorExpected EnumeratorExpected EnumeratorExpected EnumeratorExpected 5015

应为枚举数对象。Enumerator object expected.

EnumNotAllowed EnumNotAllowed EnumNotAllowed EnumNotAllowed 1230

此上下文中不允许有 enum 定义。enum definition not allowed in this context.

ErrEOF ErrEOF ErrEOF ErrEOF 1107

需要更多的源字符。Expecting more source characters.

ExceptionFromHResult ExceptionFromHResult ExceptionFromHResult ExceptionFromHResult 6011

异常来自 HRESULT。Exception from HRESULT.

ExecutablesCannotBeLocalized ExecutablesCannotBeLocalized ExecutablesCannotBeLocalized ExecutablesCannotBeLocalized 1254

可执行文件不能本地化;Culture 应始终为空。Executables cannot be localized; Culture should always be empty.

ExpandoClassShouldNotImpleEnumerable ExpandoClassShouldNotImpleEnumerable ExpandoClassShouldNotImpleEnumerable ExpandoClassShouldNotImpleEnumerable 1162

Expando 类不应实现 IEnumerableExpando classes should not implement IEnumerable. 该接口是在 Expando 类上隐式定义的。The interface is implicitly defined on Expando classes.

ExpandoMustBePublic ExpandoMustBePublic ExpandoMustBePublic ExpandoMustBePublic 1257

Expando 方法必须是公共方法。Expando methods must be public.

ExpandoPrecludesAbstract ExpandoPrecludesAbstract ExpandoPrecludesAbstract ExpandoPrecludesAbstract 1222

Expando 方法不能是抽象方法。Expando methods cannot be abstract.

ExpandoPrecludesOverride ExpandoPrecludesOverride ExpandoPrecludesOverride ExpandoPrecludesOverride 1220

Expando 方法不能重写基类方法。Expando methods cannot override base class methods.

ExpandoPrecludesStatic ExpandoPrecludesStatic ExpandoPrecludesStatic ExpandoPrecludesStatic 1250

Expando 方法不能是静态方法。Expando methods cannot be static.

ExpectedAssembly ExpectedAssembly ExpectedAssembly ExpectedAssembly 1248

应为程序集。Expected assembly.

ExpressionExpected ExpressionExpected ExpressionExpected ExpressionExpected 1195

应为表达式。Expected expression.

FileNotFound FileNotFound FileNotFound FileNotFound 53

找不到文件。File not found.

FinalPrecludesAbstract FinalPrecludesAbstract FinalPrecludesAbstract FinalPrecludesAbstract 1209

不能将 finalabstract 一同使用。final and abstract cannot be used together.

FractionOutOfRange FractionOutOfRange FractionOutOfRange FractionOutOfRange 5026

小数位数超出范围。The number of fractional digits is out of range.

FuncEvalAborted FuncEvalAborted FuncEvalAborted FuncEvalAborted 6000

函数计算已中止。Function evaluation was aborted.

FuncEvalBadLocation FuncEvalBadLocation FuncEvalBadLocation FuncEvalBadLocation 6007

当函数求值在程序中的此点停止时,函数求值无法完成。Function evaluation cannot be done when stopped at this point in the program.

FuncEvalBadThreadNotStarted FuncEvalBadThreadNotStarted FuncEvalBadThreadNotStarted FuncEvalBadThreadNotStarted 6005

函数求值失败,线程未启动。Function evaluation failed and the thread has not started.

FuncEvalBadThreadState FuncEvalBadThreadState FuncEvalBadThreadState FuncEvalBadThreadState 6004

函数求值失败。Function evaluation failed. 线程可能包含不正确的数据。The thread can contain incorrect data.

FuncEvalThreadSleepWaitJoin FuncEvalThreadSleepWaitJoin FuncEvalThreadSleepWaitJoin FuncEvalThreadSleepWaitJoin 6003

函数求值失败。Function evaluation failed. 线程正在休眠,等待某个对象,或者在等待另一个线程结束。The thread is sleeping, waiting for an object, or waiting for another thread to finish.

FuncEvalThreadSuspended FuncEvalThreadSuspended FuncEvalThreadSuspended FuncEvalThreadSuspended 6002

函数求值失败。Function evaluation failed. 线程被挂起。The thread is suspended.

FuncEvalTimedout FuncEvalTimedout FuncEvalTimedout FuncEvalTimedout 6001

函数计算超时。Function evaluation timed out.

FuncEvalWebMethod FuncEvalWebMethod FuncEvalWebMethod FuncEvalWebMethod 6008

不能在调试器中调用 Web 方法。Cannot call a Web method in the debugger.

FunctionExpected FunctionExpected FunctionExpected FunctionExpected 5002

应为函数。A function was expected.

GetAndSetAreInconsistent GetAndSetAreInconsistent GetAndSetAreInconsistent GetAndSetAreInconsistent 1142

此属性的 getset 方法彼此不匹配。The get and set methods of this property do not match each other.

HidesAbstractInBase HidesAbstractInBase HidesAbstractInBase HidesAbstractInBase 1172

方法隐藏了 abstract 类中的 baseMethod hides abstract in a base class.

HidesParentMember HidesParentMember HidesParentMember HidesParentMember 1170

base 类已包含以此名称命名的成员。base class already contains a member by this name.

IllegalAssignment IllegalAssignment IllegalAssignment IllegalAssignment 5008

无效的赋值。Invalid assignment.

IllegalChar IllegalChar IllegalChar IllegalChar 1014

无效字符。Invalid character.

IllegalEval IllegalEval IllegalEval IllegalEval 5033

不能通过别名调用 EvalAn Eval cannot be called by an alias.

IllegalParamArrayAttribute IllegalParamArrayAttribute IllegalParamArrayAttribute IllegalParamArrayAttribute 1221

变量参数列表必须为数组类型。A variable argument list must be of an array type.

IllegalUseOfSuper IllegalUseOfSuper IllegalUseOfSuper IllegalUseOfSuper 1189

以这种方式使用基类是无效的。It is not valid to use the base class in this way.

IllegalUseOfThis IllegalUseOfThis IllegalUseOfThis IllegalUseOfThis 1122

在当前上下文中使用 this 是无效的。It is not valid to use this in the current context.

IllegalVisibility IllegalVisibility IllegalVisibility IllegalVisibility 1102

无效的可见性修饰符。Invalid visibility modifier.

ImplicitlyReferencedAssemblyNotFound ImplicitlyReferencedAssemblyNotFound ImplicitlyReferencedAssemblyNotFound ImplicitlyReferencedAssemblyNotFound 1259

引用的程序集依赖于另一个未被引用或未能找到的程序集。A referenced assembly depends on another assembly that is not referenced or could not be found.

ImpossibleConversion ImpossibleConversion ImpossibleConversion ImpossibleConversion 1208

指定的转换或强制不可能实现。The specified conversion or coercion is not possible.

IncompatibleAssemblyReference IncompatibleAssemblyReference IncompatibleAssemblyReference IncompatibleAssemblyReference 1267

引用的程序集不兼容。The assembly referenced is incompatible.

IncompatibleVisibility IncompatibleVisibility IncompatibleVisibility IncompatibleVisibility 1108

不兼容的可见性修饰符。Incompatible visibility modifier.

IncorrectNumberOfIndices IncorrectNumberOfIndices IncorrectNumberOfIndices IncorrectNumberOfIndices 5042

索引数与数组的维数不匹配。The number of indices does not match the dimension of the array.

InstanceNotAccessibleFromStatic InstanceNotAccessibleFromStatic InstanceNotAccessibleFromStatic InstanceNotAccessibleFromStatic 1243

不能从 static 范围访问非静态成员。A non-static member is not accessible from a static scope.

InterfaceIllegalInInterface InterfaceIllegalInInterface InterfaceIllegalInInterface InterfaceIllegalInInterface 1227

不能在 interface 中声明接口。Interfaces cannot be declared in an interface.

InternalError InternalError InternalError InternalError 51

引发了内部错误。An internal error has been thrown.

InvalidAssemblyKeyFile InvalidAssemblyKeyFile InvalidAssemblyKeyFile InvalidAssemblyKeyFile 1268

使用了无效的程序集密钥文件。An invalid assembly key file has been used.

InvalidBaseTypeForEnum InvalidBaseTypeForEnum InvalidBaseTypeForEnum InvalidBaseTypeForEnum 1213

enum 基类型必须是基元整型。enum base type must be a primitive integral type.

InvalidCall InvalidCall InvalidCall InvalidCall 5

无效的过程调用或参数。Invalid procedure call or argument.

InvalidCustomAttribute InvalidCustomAttribute InvalidCustomAttribute InvalidCustomAttribute 1143

自定义特性类必须从 Attribute 派生。A custom attribute class must derive from Attribute.

InvalidCustomAttributeArgument InvalidCustomAttributeArgument InvalidCustomAttributeArgument InvalidCustomAttributeArgument 1144

在自定义特性构造函数参数列表中只允许使用基元类型。Only primitive types are allowed in a custom attribute constructor arguments list.

InvalidCustomAttributeClassOrCtor InvalidCustomAttributeClassOrCtor InvalidCustomAttributeClassOrCtor InvalidCustomAttributeClassOrCtor 1146

未知的自定义特性类或构造函数。Unknown custom attribute class or constructor.

InvalidCustomAttributeTarget InvalidCustomAttributeTarget InvalidCustomAttributeTarget InvalidCustomAttributeTarget 1231

此特性对于此类型的声明无效。This attribute is not valid for this type of declaration.

InvalidDebugDirective InvalidDebugDirective InvalidDebugDirective InvalidDebugDirective 1235

无效的调试指令。Invalid debug directive.

InvalidElse InvalidElse InvalidElse InvalidElse 1034

else 不匹配;未定义 ifUnmatched else; no if defined.

InvalidImport InvalidImport InvalidImport InvalidImport 1229

import 语句在此上下文中无效。The import statement is not valid in this context.

InvalidLanguageOption InvalidLanguageOption InvalidLanguageOption InvalidLanguageOption 1179

必须指定“fast”或“versionSafe”语言选项。Must specify either "fast" or "versionSafe" language option.

InvalidPositionDirective InvalidPositionDirective InvalidPositionDirective InvalidPositionDirective 1114

发现未知的位置指令。An unknown position directive was discovered.

InvalidPrototype InvalidPrototype InvalidPrototype InvalidPrototype 5023

此函数没有有效的原型对象。This function does not have a valid prototype object.

InvalidResource InvalidResource InvalidResource InvalidResource 1262

这不是有效的 .resources 文件。This is not a valid .resources file.

ItemNotAllowedOnExpandoClass ItemNotAllowedOnExpandoClass ItemNotAllowedOnExpandoClass ItemNotAllowedOnExpandoClass 1152

不能在 Expando 类上定义 Item 属性。Cannot define the property Item on an Expando class. 此 Item 保留给 Expando 字段使用。This Item is reserved for the Expando fields.

KeywordUsedAsIdentifier KeywordUsedAsIdentifier KeywordUsedAsIdentifier KeywordUsedAsIdentifier 1137

不能使用保留字作为标识符。You cannot use a reserved word as an identifier.

MemberInitializerCannotContainFuncExpr MemberInitializerCannotContainFuncExpr MemberInitializerCannotContainFuncExpr MemberInitializerCannotContainFuncExpr 1270

成员的初始值设定项不能包含函数表达式。A member initializer cannot contain a function expression.

MemberTypeCLSCompliantMismatch MemberTypeCLSCompliantMismatch MemberTypeCLSCompliantMismatch MemberTypeCLSCompliantMismatch 1265

类成员不能标记为符合公共语言规范 (CLS),因为该类没有标记为符合 CLS。Class member cannot be marked Common Language Specification (CLS) compliant because the class is not marked CLS compliant.

MethodClashOnExpandoSuperClass MethodClashOnExpandoSuperClass MethodClashOnExpandoSuperClass MethodClashOnExpandoSuperClass 1155

无法创建 Expando 类,因为已在类层次结构中定义了名为 Item 的属性。Cannot create the Expando class because a property named Item is already defined in the class hierarchy.

MethodInBaseIsNotVirtual MethodInBaseIsNotVirtual MethodInBaseIsNotVirtual MethodInBaseIsNotVirtual 1174

基类(final 或不是 virtual override)中的方法将被忽略。A method in a base class that is final or not virtualoverride is ignored. 指定 hideSpecify hide.

MethodNotAllowedOnExpandoClass MethodNotAllowedOnExpandoClass MethodNotAllowedOnExpandoClass MethodNotAllowedOnExpandoClass 1153

不能在 Expando 类上定义名为 Item 的属性。Cannot define a property named Item on an Expando class.

MissingConstructForAttributes MissingConstructForAttributes MissingConstructForAttributes MissingConstructForAttributes 1160

该特性列表不适用于当前上下文。The list of attributes does not apply to the current context.

MissingNameParameter MissingNameParameter MissingNameParameter MissingNameParameter 5037

指定的命名参数名称不是形参之一。The specified named parameter name is not one of the formal parameters.

MoreNamedParametersThanArguments MoreNamedParametersThanArguments MoreNamedParametersThanArguments MoreNamedParametersThanArguments 5038

指定的参数太少。Too few arguments specified. 命名参数名的数目不能超过传入的变量的数目。The number of named parameter names cannot exceed the number of arguments passed in.

MustBeEOL MustBeEOL MustBeEOL MustBeEOL 1115

在同一行上,指令后面不能有其他代码。Directive cannot be followed by other code on the same line.

MustImplementMethod MustImplementMethod MustImplementMethod MustImplementMethod 1128

该类必须提供方法的实现。The class must provide an implementation of the method.

MustProvideNameForNamedParameter MustProvideNameForNamedParameter MustProvideNameForNamedParameter MustProvideNameForNamedParameter 5035

无法提供 null 或空的命名参数名。Cannot provide null or empty named parameter name.

NeedArrayObject NeedArrayObject NeedArrayObject NeedArrayObject 5031

“|”不是数组对象。A "|" is not an array object. 应为数组对象。Array object expected.

NeedCompileTimeConstant NeedCompileTimeConstant NeedCompileTimeConstant NeedCompileTimeConstant 1110

表达式必须为编译时常量。An expression must be a compile-time constant.

NeedInstance NeedInstance NeedInstance NeedInstance 1210

应为实例。An instance is expected.

NeedInterface NeedInterface NeedInterface NeedInterface 1129

应为接口名称。An interface name is expected.

NeedObject NeedObject NeedObject NeedObject 424

需要对象。An object is required.

NeedType NeedType NeedType NeedType 1112

应为类型名称。A type name is expected.

NestedInstanceTypeCannotBeExtendedByStatic NestedInstanceTypeCannotBeExtendedByStatic NestedInstanceTypeCannotBeExtendedByStatic NestedInstanceTypeCannotBeExtendedByStatic 1237

非静态嵌套类型只能由嵌套在同一类中的非静态类型扩展。A non-static nested type can be extended only by a non-static type nested in the same class.

NewNotSpecifiedInMethodDeclaration NewNotSpecifiedInMethodDeclaration NewNotSpecifiedInMethodDeclaration NewNotSpecifiedInMethodDeclaration 1173

方法与基类中的方法匹配。A method matches a method in a base class. 必须指定 overridehideMust specify override or hide.

NoAt NoAt NoAt NoAt 1032

应为 @Expected @.

NoCatch NoCatch NoCatch NoCatch 1033

应为 catchExpected catch.

NoCcEnd NoCcEnd NoCcEnd NoCcEnd 1029

应为 @endExpected @end.

NoColon NoColon NoColon NoColon 1003

应为“:”。Expected ":".

NoComma NoComma NoComma NoComma 1100

应为“,”。Expected ",".

NoCommaOrTypeDefinitionError NoCommaOrTypeDefinitionError NoCommaOrTypeDefinitionError NoCommaOrTypeDefinitionError 1191

应为“,”,或者类型声明无效;请写为“<Identifier> :<Type>”,而非“<Type> <Identifier>”。Expected "," or invalid type declaration; write "<Identifier> : <Type>" not "<Type> <Identifier>".

NoCommentEnd NoCommentEnd NoCommentEnd NoCommentEnd 1016

注释未终止。Comment not terminated.

NoConstructor NoConstructor NoConstructor NoConstructor 5032

无此类构造函数。No such constructor.

NoEqual NoEqual NoEqual NoEqual 1011

应为“=”。Expected "=".

NoError NoError NoError NoError 0

无错误。No error. 这是枚举的默认 (0) 值。This is the default (0) value for the enumeration.

NoFuncEvalAllowed NoFuncEvalAllowed NoFuncEvalAllowed NoFuncEvalAllowed 6006

函数求值中止。Function evaluation aborted. 若要启用属性求值,请单击“工具”菜单上的“选项”,然后在树视图中选择“调试”。To turn on property evaluation, click Options on the Tools menu and then select the Debugging in the tree view.

NoIdentifier NoIdentifier NoIdentifier NoIdentifier 1010

应为标识符。Expected identifier.

NoLabel NoLabel NoLabel NoLabel 1026

未找到标签。Label not found.

NoLeftCurly NoLeftCurly NoLeftCurly NoLeftCurly 1008

应为“{”。Expected "{".

NoLeftParen NoLeftParen NoLeftParen NoLeftParen 1005

应为“(”。Expected "(".

NoMemberIdentifier NoMemberIdentifier NoMemberIdentifier NoMemberIdentifier 1028

应为标识符或 stringExpected identifier or string.

NoMethodInBaseToNew NoMethodInBaseToNew NoMethodInBaseToNew NoMethodInBaseToNew 1175

基类中没有要执行 hide 操作的成员。There is no member in a base class to hide.

NoMethodInBaseToOverride NoMethodInBaseToOverride NoMethodInBaseToOverride NoMethodInBaseToOverride 1180

基类中没有要执行 override 操作的成员。There is no member in a base class to override.

NonCLSCompliantMember NonCLSCompliantMember NonCLSCompliantMember NonCLSCompliantMember 1163

指定的成员不符合 CLS。The specified member is not CLS compliant.

NonCLSCompliantType NonCLSCompliantType NonCLSCompliantType NonCLSCompliantType 1264

指定的类型不符合 CLS。The specified type is not CLS compliant.

NonClsException NonClsException NonClsException NonClsException 5046

引发非 CLS 异常的目标。A target threw a non-CLS exception.

NonStaticWithTypeName NonStaticWithTypeName NonStaticWithTypeName NonStaticWithTypeName 1245

无法使用类名访问非静态成员。A non-static member cannot be accessed with the class name.

NonSupportedInDebugger NonSupportedInDebugger NonSupportedInDebugger NonSupportedInDebugger 5039

不能在调试器中计算该表达式的值。The expression cannot be evaluated in the debugger.

NoRightBracket NoRightBracket NoRightBracket NoRightBracket 1007

应为“]”。Expected "]".

NoRightBracketOrComma NoRightBracketOrComma NoRightBracketOrComma NoRightBracketOrComma 1194

应为“,”或“]”。Expected "," or "]".

NoRightCurly NoRightCurly NoRightCurly NoRightCurly 1009

应为“}”。Expected "}".

NoRightParen NoRightParen NoRightParen NoRightParen 1006

应为“)”。Expected ")".

NoRightParenOrComma NoRightParenOrComma NoRightParenOrComma NoRightParenOrComma 1193

应为“,”或“)”。Expected "," or ")".

NoSemicolon NoSemicolon NoSemicolon NoSemicolon 1004

应为“;”。Expected ";".

NoSuchMember NoSuchMember NoSuchMember NoSuchMember 1151

此类型的对象不具有此类成员。Objects of this type do not have such a member.

NoSuchStaticMember NoSuchStaticMember NoSuchStaticMember NoSuchStaticMember 1246

类型不具有此类 static 成员。Type does not have such a static member.

NoSuchType NoSuchType NoSuchType NoSuchType 1241

未能找到类型。Type could not be found. 可能缺少程序集引用。An assembly reference might be missing.

NotAccessible NotAccessible NotAccessible NotAccessible 1123

不能从此范围访问对象或成员。The object or member is not accessible from this scope.

NotAllowedInSuperConstructorCall NotAllowedInSuperConstructorCall NotAllowedInSuperConstructorCall NotAllowedInSuperConstructorCall 1140

在基类构造函数调用中不允许使用对象或成员。Object or member is not allowed in a call to the base class constructor.

NotAnExpandoFunction NotAnExpandoFunction NotAnExpandoFunction NotAnExpandoFunction 1252

应将用作构造函数的类成员标记为 Expando 函数。Class members used as constructors should be marked as Expando functions.

NotCollection NotCollection NotCollection NotCollection 451

此对象不是集合。This object is not a collection.

NotConst NotConst NotConst NotConst 1031

应为常量。Expected constant.

NotDeletable NotDeletable NotDeletable NotDeletable 1164

无法删除对象或成员。The object or member cannot be deleted.

NotIndexable NotIndexable NotIndexable NotIndexable 1158

此类型的对象是不可建立索引的。Objects of this type are not indexable.

NotInsideClass NotInsideClass NotInsideClass NotInsideClass 1113

仅在类定义中有效。Valid only inside a class definition.

NotMeantToBeCalledDirectly NotMeantToBeCalledDirectly NotMeantToBeCalledDirectly NotMeantToBeCalledDirectly 1141

无法直接调用此方法。You cannot call this method directly. 如果可能,请改用属性访问器。If possible, use property accessors instead.

NotOKToCallSuper NotOKToCallSuper NotOKToCallSuper NotOKToCallSuper 1188

从此位置调用基类构造函数无效。It is not valid to call a base class constructor from this location.

NotValidForConstructor NotValidForConstructor NotValidForConstructor NotValidForConstructor 1181

对于构造函数无效。Not valid for a constructor.

NotValidVersionString NotValidVersionString NotValidVersionString NotValidVersionString 1253

不是有效的版本字符串。Not a valid version string.

NotYetImplemented NotYetImplemented NotYetImplemented NotYetImplemented 5034

尚未实现。Not yet implemented.

NoVarInEnum NoVarInEnum NoVarInEnum NoVarInEnum 1228

enum 成员声明不应使用 var 关键字。enum member declarations should not use the var keyword.

NoWhile NoWhile NoWhile NoWhile 1024

应为 whileExpected while.

NumberExpected NumberExpected NumberExpected NumberExpected 5001

应为数字。Expected a number.

ObjectExpected ObjectExpected ObjectExpected ObjectExpected 5007

应为对象。Expected an object.

OctalLiteralsAreDeprecated OctalLiteralsAreDeprecated OctalLiteralsAreDeprecated OctalLiteralsAreDeprecated 1186

八进制文本已被否决。Octal literals are deprecated.

OLENoPropOrMethod OLENoPropOrMethod OLENoPropOrMethod OLENoPropOrMethod 438

对象不支持此属性或方法。Object does not support this property or method.

OnlyClassesAllowed OnlyClassesAllowed OnlyClassesAllowed OnlyClassesAllowed 1161

package 内只允许使用类。Only classes are allowed inside a package.

OnlyClassesAndPackagesAllowed OnlyClassesAndPackagesAllowed OnlyClassesAndPackagesAllowed OnlyClassesAndPackagesAllowed 1234

库中仅允许包含类和包。Only classes and packages are allowed inside a library.

OutOfMemory OutOfMemory OutOfMemory OutOfMemory 7

内存不足。Out of memory.

OutOfStack OutOfStack OutOfStack OutOfStack 28

堆栈空间不足。Out of stack space.

OverrideAndHideUsedTogether OverrideAndHideUsedTogether OverrideAndHideUsedTogether OverrideAndHideUsedTogether 1178

不能在成员声明中同时使用 overridehideCannot use override and hide together in a member declaration.

PackageExpected PackageExpected PackageExpected PackageExpected 1165

应为包名称。Package name expected.

PackageInWrongContext PackageInWrongContext PackageInWrongContext PackageInWrongContext 1232

此上下文中不允许有包定义。Package definition is not allowed in this context.

ParamListNotLast ParamListNotLast ParamListNotLast ParamListNotLast 1240

变量参数列表必须是最后一个参数。A variable argument list must be the last argument.

PossibleBadConversion PossibleBadConversion PossibleBadConversion PossibleBadConversion 1260

此转换在运行时可能失败。This conversion may fail at runtime.

PossibleBadConversionFromString PossibleBadConversionFromString PossibleBadConversionFromString PossibleBadConversionFromString 1261

将字符串转换为数字或布尔值很慢,并且在运行时可能失败。Converting a string to a number or Boolean is slow and may fail at run time.

PrecisionOutOfRange PrecisionOutOfRange PrecisionOutOfRange PrecisionOutOfRange 5027

精度超出范围。The precision is out of range.

PropertyLevelAttributesMustBeOnGetter PropertyLevelAttributesMustBeOnGetter PropertyLevelAttributesMustBeOnGetter PropertyLevelAttributesMustBeOnGetter 1238

如果有 get 访问器,则必须在 get 访问器上指定针对属性的特性。An attribute that targets the property must be specified on the get accessor, if the get accessor is present.

RefParamsNonSupportedInDebugger RefParamsNonSupportedInDebugger RefParamsNonSupportedInDebugger RefParamsNonSupportedInDebugger 5043

不能在调试器中调用具有 ref 参数的方法。Methods with ref parameters cannot be called in the debugger.

RegExpExpected RegExpExpected RegExpExpected RegExpExpected 5016

应为 RegExpObject 对象。RegExpObject object expected.

RegExpSyntax RegExpSyntax RegExpSyntax RegExpSyntax 5017

正则表达式中有语法错误。Syntax error in regular expression.

ShouldBeAbstract ShouldBeAbstract ShouldBeAbstract ShouldBeAbstract 1223

没有函数体的函数应该为 abstractA function without a body should be abstract.

SideEffectsDisallowed SideEffectsDisallowed SideEffectsDisallowed SideEffectsDisallowed 6012

表达式可导致副作用,将不会对它进行计算。The expression causes side effects and will not be evaluated.

StaticIsAlreadyFinal StaticIsAlreadyFinal StaticIsAlreadyFinal StaticIsAlreadyFinal 1217

静态方法不能是 finalStatic methods cannot be final.

StaticMethodsCannotHide StaticMethodsCannotHide StaticMethodsCannotHide StaticMethodsCannotHide 1219

静态方法不能隐藏基类方法。Static methods cannot hide base class methods.

StaticMethodsCannotOverride StaticMethodsCannotOverride StaticMethodsCannotOverride StaticMethodsCannotOverride 1218

静态方法不能重写基类方法。Static methods cannot override base class methods.

StaticMissingInStaticInit StaticMissingInStaticInit StaticMissingInStaticInit StaticMissingInStaticInit 1159

静态初始值设定项必须指定 static 关键字。Static initializer must specify the static keyword.

StaticRequiresTypeName StaticRequiresTypeName StaticRequiresTypeName StaticRequiresTypeName 1244

必须通过类名访问静态成员。A static member must be accessed by the class name.

StaticVarNotAvailable StaticVarNotAvailable StaticVarNotAvailable StaticVarNotAvailable 6009

静态变量不可用。A static variable is not available.

StringConcatIsSlow StringConcatIsSlow StringConcatIsSlow StringConcatIsSlow 1255

加号运算符是较慢的字符串连接方法。The plus operator is a slow way to concatenate strings. 请考虑改用 StringBuilderConsider using StringBuilder instead.

StringExpected StringExpected StringExpected StringExpected 5005

应为字符串。String expected.

SuperClassConstructorNotAccessible SuperClassConstructorNotAccessible SuperClassConstructorNotAccessible SuperClassConstructorNotAccessible 1185

无法从此范围访问基类构造函数。Base class constructor is not accessible from this scope.

SuspectAssignment SuspectAssignment SuspectAssignment SuspectAssignment 1206

If 条件不能包含赋值。If condition cannot contain an assignment.

SuspectLoopCondition SuspectLoopCondition SuspectLoopCondition SuspectLoopCondition 1247

Loop 条件不能包含函数调用。Loop condition cannot contain a function call.

SuspectSemicolon SuspectSemicolon SuspectSemicolon SuspectSemicolon 1207

if 语句中找到空语句。Empty statement found in if statement.

SyntaxError SyntaxError SyntaxError SyntaxError 1002

发现语法错误。Discovered syntax error.

TooFewParameters TooFewParameters TooFewParameters TooFewParameters 1204

未提供所有必需的参数。Not all required parameters have been supplied.

TooManyParameters TooManyParameters TooManyParameters TooManyParameters 1148

实参太多。There are too many actual parameters. 多余的参数将被忽略。The excess parameters will be ignored.

TooManyTokensSkipped TooManyTokensSkipped TooManyTokensSkipped TooManyTokensSkipped 1197

错误太多。Too many errors. 该文件可能不是 JScript 文件。The file might not be a JScript file.

TypeAssemblyCLSCompliantMismatch TypeAssemblyCLSCompliantMismatch TypeAssemblyCLSCompliantMismatch TypeAssemblyCLSCompliantMismatch 1266

此类型不能标记为符合 CLS,因为该程序集没有标记为符合 CLS。Type cannot be marked CLS compliant because the assembly is not marked as CLS compliant.

TypeCannotBeExtended TypeCannotBeExtended TypeCannotBeExtended TypeCannotBeExtended 1134

无法扩展类型。Type cannot be extended.

TypeMismatch TypeMismatch TypeMismatch TypeMismatch 13

类型不匹配。Type mismatch.

TypeNameTooLong TypeNameTooLong TypeNameTooLong TypeNameTooLong 1269

完全限定类型名称太长。The fully qualified type name is too long. 它必须小于 1,024 个字符。It must be less than 1,024 characters.

TypeObjectNotAvailable TypeObjectNotAvailable TypeObjectNotAvailable TypeObjectNotAvailable 6010

此类型的类型对象不可用。The type object for this type is not available.

UncaughtException UncaughtException UncaughtException UncaughtException 5022

引发了异常,但未被捕获。Exception thrown and not caught.

UndeclaredVariable UndeclaredVariable UndeclaredVariable UndeclaredVariable 1135

未声明变量。Variable has not been declared.

UndefinedIdentifier UndefinedIdentifier UndefinedIdentifier UndefinedIdentifier 5009

未定义标识符。Undefined identifier.

UnexpectedSemicolon UnexpectedSemicolon UnexpectedSemicolon UnexpectedSemicolon 1196

意外的“;”。Unexpected ";".

UnreachableCatch UnreachableCatch UnreachableCatch UnreachableCatch 1133

永远不会到达 Catch 子句。Catch clause will never be reached.

UnterminatedString UnterminatedString UnterminatedString UnterminatedString 1015

字符串常量未终止。String constant not terminated.

URIDecodeError URIDecodeError URIDecodeError URIDecodeError 5025

要解码的 URI 不是有效编码。The URI to be decoded is not a valid encoding.

URIEncodeError URIEncodeError URIEncodeError URIEncodeError 5024

要编码的 URI 包含无效字符。The URI to be encoded contains an invalid character.

UselessAssignment UselessAssignment UselessAssignment UselessAssignment 1205

赋值创建一个立即被丢弃的 Expando 属性。An assignment creates an Expando property that is immediately thrown away.

UselessExpression UselessExpression UselessExpression UselessExpression 1169

表达式不起任何作用。Expression has no effect.

VariableLeftUninitialized VariableLeftUninitialized VariableLeftUninitialized VariableLeftUninitialized 1136

未初始化的十分变量危险且使用起来很慢。Uninitialized variables are dangerous and slow to use. 您是否希望将其保留在未初始化状态?Did you intend to leave it uninitialized?

VariableMightBeUnitialized VariableMightBeUnitialized VariableMightBeUnitialized VariableMightBeUnitialized 1187

变量可能未初始化。Variable might not be initialized.

VarIllegalInInterface VarIllegalInInterface VarIllegalInInterface VarIllegalInInterface 1226

不能在接口中声明变量。Variables cannot be declared in an interface.

VBArrayExpected VBArrayExpected VBArrayExpected VBArrayExpected 5013

应为 VBArray。A VBArray is expected.

WriteOnlyProperty WriteOnlyProperty WriteOnlyProperty WriteOnlyProperty 5041

属性是只写的。The property is write-only.

WrongDirective WrongDirective WrongDirective WrongDirective 1118

调试器指令错误或指令的位置错误。Wrong debugger directive or wrong position for the directive.

WrongUseOfAddressOf WrongUseOfAddressOf WrongUseOfAddressOf WrongUseOfAddressOf 1263

只能在参数列表中使用运算符地址。The address of operator can be used only in a list of arguments.

适用于