New (InvalidRegex constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template, tags and edits)
Line 11: Line 11:
</td></tr>
</td></tr>
<tr><th>%(InvalidRegex)</th><td>The class name in parentheses denotes a shared method.</td></tr>
<tr><th>%(InvalidRegex)</th><td>The class name in parentheses denotes a shared method.</td></tr>
<tr><th>Code</th>
<tr><th><var>Code</var></th>
<td>This <var>[[Methods#Named parameters|Name-Required]]</var> parameter specifies the numeric value (''number'') to be assigned to the exception object's <var>[[Code_(InvalidRegex_property)|Code]]</var> property.
<td>This [[Methods#Named parameters|name required]] parameter specifies the numeric value (<var class="term">number</var>) to be assigned to the exception object's <var>[[Code_(InvalidRegex_property)|Code]]</var> property.
</td></tr>
</td></tr>
<tr><th>Description</th>
<tr><th><var>Description</var></th>
<td>This <var>Name-Required</var> parameter specifies the string value (''string'') to be assigned to the object's <var>[[Description_(InvalidRegex_property)|Description]]</var> property.
<td>This name required parameter specifies the string value (<var class="term">string</var>) to be assigned to the object's <var>[[Description_(InvalidRegex_property)|Description]]</var> property.
</td></tr>
</td></tr>
<tr><th>Position</th>
<tr><th><var>Position</var></th>
<td>This <var>Name-Required</var> parameter specifies the numeric value (''number'') to be assigned to the object's <var>[[Position_(InvalidRegex_property)|Position]]</var> property.
<td>This name required parameter specifies the numeric value (<var class="term">number</var>) to be assigned to the object's <var>[[Position_(InvalidRegex_property)|Position]]</var> property.
</td></tr></table>
</td></tr></table>


==See also==
==See also==
{{Template:InvalidRegex:New footer}}
{{Template:InvalidRegex:New footer}}

Revision as of 00:00, 3 May 2011

Create a new InvalidRegex object (InvalidRegex class) This constructor generates an instance of an InvalidRegex exception.

As shown below, the required arguments of the New method is the Code, Description, and Position properties. Each argument to New sets the value of the corresponding property of the newly constructed InvalidRegex object.

Syntax

%invalidRegex = [%(InvalidRegex):]New( Position= number, Code= number, - Description= string)

Syntax terms

%invalidRegex A reference to an instance of an InvalidRegex object.
%(InvalidRegex)The class name in parentheses denotes a shared method.
Code This name required parameter specifies the numeric value (number) to be assigned to the exception object's Code property.
Description This name required parameter specifies the string value (string) to be assigned to the object's Description property.
Position This name required parameter specifies the numeric value (number) to be assigned to the object's Position property.

See also