Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Specifies documentation information for get and set functions for ECMAScript 3 properties.
Syntax
<value type="ValueType" integer="true|false"
domElement="true|false" mayBeNull="true|false"
elementType="ArrayElementType" elementInteger="true|false"
elementDomElement="true|false" elementMayBeNull="true|false"
locid="descriptionID">description
</value>
Parameters
type
Optional. The data type of the property. The type can be one of the following:
An ECMAScript language type that's in the ECMAScript 5 specification, such as
NumberandObject.A DOM object, such as
HTMLElement,Window, andDocument.A JavaScript constructor function.
integerOptional. IftypeisNumber, specifies whether the property is an integer. Set totrueto indicate that the property is an integer; otherwise, set tofalse. This attribute is not used by Visual Studio to provide IntelliSense information.domElementOptional. This attribute is deprecated; thetypeattribute takes precedence over this attribute. This attribute specifies whether the documented property is a DOM element. Set totrueto specify that the property is a DOM element; otherwise, set tofalse. If thetypeattribute is not set anddomElementis set totrue, IntelliSense treats the documented property as anHTMLElementwhen performing statement completion.mayBeNullOptional. Specifies whether the documented property can be set to null. Set totrueto indicate that the property can be set to null; otherwise, set tofalse. The default value isfalse. This attribute is not used by Visual Studio to provide IntelliSense information.elementTypeOptional. IftypeisArray, this attribute specifies the type of the elements in the array.elementIntegerOptional. IftypeisArrayandelementTypeisNumber, this attribute specifies whether the elements in the array are integers. Set totrueto indicate that the elements in the array are integers; otherwise, set tofalse. This attribute is not used by Visual Studio to provide IntelliSense information.elementDomElementOptional. This attribute is deprecated; theelementTypeattribute takes precedence over this attribute. IftypeisArray, this attribute specifies whether the elements in the array are DOM elements. Set totrueto specify that the elements are DOM elements; otherwise, set tofalse. If theelementTypeattribute is not set andelementDomElementis set totrue, IntelliSense treats each element in the array as anHTMLElementwhen performing statement completion.elementMayBeNullOptional. IftypeisArray, specifies whether the elements in the array can be set to null. Set totrueto indicate that the elements in the array can be set to null; otherwise, set tofalse. The default value isfalse. This attribute is not used by Visual Studio to provide IntelliSense information.locidOptional. The identifier for localization information about the property. The identifier is either a member ID or it corresponds to thenameattribute value in a message bundle defined by OpenAjax metadata. The identifier type depends on the format specified in the <loc> element.descriptionOptional. A description of the property.
Remarks
ECMAScript 5 properties use the <summary> element.
Use the <value> element immediately before the get or set function.
Example
The following code example shows how to use the <value> element on a get function.
function Sys$CancelEventArgs$get_cancel() {
/// <value type="Boolean" locid="P:J#Sys.CancelEventArgs.cancel"></value>
if (arguments.length !== 0) throw Error.parameterCount();
return this._cancel();
}