New (CharacterTranslationException constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/>Create new CharacterTranslationException instance<section end=dpl_desc/></span>
<span class="pageSubtitle"><section begin=dpl_desc/>Create new CharacterTranslationException instance<section end=dpl_desc/></span>
[[Category:CharacterTranslationException methods|New constructor]]
[[Category:CharacterTranslationException methods|New constructor]]
Line 23: Line 22:
<td>A reference to an instance of a CharacterTranslationException object.
<td>A reference to an instance of a CharacterTranslationException object.
</td></tr>
</td></tr>
<tr><th><b>Reason=</b>reasonEnum</th>
<tr><th>Reason=reasonEnum</th>
<td>This name required parameter specifies the value to be assigned to the exception object's Reason property. As described "[[Reason (CharacterTranslationException property)|Reason]]", the ''reasonEnum'' enumeration values are <code>InvalidEncoding</code>, <code>InvalidCharacterReference</code>, and <code>UntranslatableCharacter</code>.
<td>This name required parameter specifies the value to be assigned to the exception object's <var>[[Reason (CharacterTranslationException property)|Reason]]</var> property. As described in for the <var>Reason</var> property, the ''reasonEnum'' enumeration values are <code>InvalidEncoding</code>, <code>InvalidCharacterReference</code>, and <code>UntranslatableCharacter</code>.
The Reason parameter is '''not''' optional.
The <var>Reason</var> parameter is '''not''' optional.
</td></tr>
</td></tr>
<tr><th><b>BytePosition=</b>num</th>
<tr><th>BytePosition=num</th>
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's BytePosition property.
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's BytePosition property.
</td></tr>
</td></tr>
<tr><th><b>CharacterPosition=</b>num</th>
<tr><th>CharacterPosition=num</th>
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's CharacterPosition property.
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's CharacterPosition property.
</td></tr>
</td></tr>
<tr><th><b>Description=</b>string</th>
<tr><th>Description=string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's Description property.
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's Description property.
</td></tr>
</td></tr>
<tr><th><b>HexValue=</b>string</th>
<tr><th>HexValue=string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's HexValue property.
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's HexValue property.


</td></tr></table>
</td></tr></table>

Revision as of 23:31, 2 March 2011

<section begin=dpl_desc/>Create new CharacterTranslationException instance<section end=dpl_desc/>

New is a member of the CharacterTranslationException class.

This constructor generates an instance of a CharacterTranslationException exception. As shown in the syntax that follows, the New method arguments set the values of the properties of the class that have the corresponding names.

Syntax

[%chTransEx =] [(CharacterTranslationException):] - New ( Reason = reasonEnum, - [, BytePosition = num] - [, CharacterPosition = num] - [, Description = string] - [, HexValue = string] )

Syntax terms

%chTransEx A reference to an instance of a CharacterTranslationException object.
Reason=reasonEnum This name required parameter specifies the value to be assigned to the exception object's Reason property. As described in for the Reason property, the reasonEnum enumeration values are InvalidEncoding, InvalidCharacterReference, and UntranslatableCharacter.

The Reason parameter is not optional.

BytePosition=num This name required parameter specifies the numeric value (num) to be assigned to the object's BytePosition property.
CharacterPosition=num This name required parameter specifies the numeric value (num) to be assigned to the object's CharacterPosition property.
Description=string This name required parameter specifies the string value (string) to be assigned to the object's Description property.
HexValue=string This name required parameter specifies the string value (string) to be assigned to the object's HexValue property.