New (CharacterTranslationException constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/><section end=dpl_desc/></b></span> New constructor <!--DP...")
 
 
(16 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/><section end=dpl_desc/></b></span>
#REDIRECT [[CharacterTranslationException class#New constructor|New constructor]]
[[Category:CharacterTranslationException methods|New constructor]]
[[Category:CharacterTranslationException methods|New constructor]]
<!--DPL?? Category:CharacterTranslationException methods|New constructor: -->
<p>
New is a member of the [[CharacterTranslationException exception class]].
</p>
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,          -
                        [,&nbsp;BytePosition = num]          -
                        [,&nbsp;CharacterPosition = num]      -
                        [,&nbsp;Description =  string]        -
                        [,&nbsp;HexValue = string] )
===Syntax terms===
<table class="syntaxTable">
<tr><th>%chTransEx</th>
<td>A reference to an instance of a CharacterTranslationException object.</td></tr>
<tr><th><b>Reason=</b>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>.
The Reason parameter is '''not''' optional.
</td></tr>
<tr><th><b>BytePosition=</b>num</th>
<td>This name required parameter specifies the numeric value (''num'')
to be assigned to the object's BytePosition property.
</td></tr>
<tr><th><b>CharacterPosition=</b>num</th>
<td>This name required parameter specifies the numeric value (''num'')
to be assigned to the object's CharacterPosition property.
</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 Description property.
</td></tr>
<tr><th><b>HexValue=</b>string</th>
<td>This name required parameter specifies the string value (''string'')
to be assigned to the object's HexValue property.
</td></tr>
</table>

Latest revision as of 23:33, 9 May 2011