สตริงที่มีคําอธิบายประกอบ

ใช้ AnnotatedString สำหรับสตริงอักขระ เพิ่มคำอธิบายประกอบได้สูงสุด 16 รายการ ลงในองค์ประกอบ

Attributes

ตารางต่อไปนี้อธิบายแอตทริบิวต์สำหรับ AnnotatedString

แอตทริบิวต์ จำเป็นหรือไม่ ประเภท คำอธิบาย
annotation ไม่บังคับ ShortString คำอธิบายประกอบความยาวไม่เกิน 16 อักขระที่เชื่อมโยงกับ สตริงอักขระ

ตัวอย่าง

อีเมล

XML

    <Email annotation="work">john.a.smith@26003.org</Email>

JSON

    "Email": [
      {
        "annotation": "work",
        "value": "john.a.smith@26003.org"
      }
    ]

โทรสาร

XML

    <Fax annotation="cell">304-555-0971</Fax>

JSON

    "Fax": [
      {
        "annotation": "cell",
        "value": "304-555-0971"
      }
    ]

โทรศัพท์

XML

    <Phone annotation="office">304-555-1234</Phone>

JSON

    "Phone": [
      {
        "annotation": "office",
        "value": "304-555-1234"
      }
    ]