New (AddToRecordError constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template:AddToRecordError:New subtitle}}
#REDIRECT [[AddToRecordError class#New constructor|New constructor]]
 
[[Category:AddToRecordError methods|New property]]
As shown in the syntax that follows,
the <var>New</var> method arguments set the values of the properties of the class that have the
corresponding names.
==Syntax==
{{Template:AddToRecordError:New syntax}}
===Syntax terms===
<table class="syntaxTable">
<tr><th>%a2RecErr</th>
<td>An <var>AddToRecordError</var> object.
</td></tr>
<tr><th><b>Reason=</b>reasonEnum</th>
<td>This name required parameter specifies the <var>AddToRecordErrorReason</var> enumeration value (''reasonEnum'') to be assigned to the exception object's <var>[[Reason (AddToRecordError property)|Reason]]</var> property.
The Reason parameter is '''not''' optional.
</td></tr>
<tr><th><b>Description=</b>string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's <var>[[Description (AddToRecordError property)|Description]]</var> property. This parameter is optional; the default value is the null string.
</td></tr>
<tr><th><b>UntranslatableHexValue=</b>hexString</th>
<td>This name required parameter specifies the string value (''hexString'') to be assigned to the object's <var>[[UntranslatableHexValue (AddToRecordError property)|UntranslatableHexValue]]</var> property. This parameter is optional; the default value is the null string and, if supplied, it must be a valid hexadecimal string.
</td></tr>
<tr><th><b>FieldOrFieldgroupName=</b>string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's <var>[[FieldOrFieldgroupName (AddToRecordError property)|FieldOrFieldgroupName]]</var> property. This parameter is optional; the default value is the null string.
</td></tr>
<tr><th><b>NodeName=</b>string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's <var>[[NodeName (AddToRecordError property)|NodeName]]</var> property. This parameter is optional; the default value is the null string.
</td></tr>
<tr><th><b>NodeType=</b>xmlNodeTypeEnum</th>
<td>This name required parameter specifies the <var>XmlNodeType</var> enumeration value (''xmlNodeTypeEnum'') to be assigned to the object's <var>[[NodeType (AddToRecordError property)|NodeType]]</var> property. This parameter is optional; the default value is Null.
</td></tr>
<tr><th><b>Value=</b>string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's <var>[[Value (AddToRecordError property)|Value]]</var> property. This parameter is optional; the default value is the null string.
</td></tr>
<tr><th><b>InputRecordNumber=</b>number</th>
<td>This name required parameter specifies the numeric value (''number'') to be assigned to the object's <var>[[InputRecordNumber (AddToRecordError property)|InputRecordNumber]]</var> property. This parameter is optional; the default value is 0.
 
</td></tr></table>
==See also==
{{Template:AddToRecordError:New footer}}

Latest revision as of 19:12, 9 May 2011