久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      • <bdo id='HY7mR'></bdo><ul id='HY7mR'></ul>

      <small id='HY7mR'></small><noframes id='HY7mR'>

    1. <i id='HY7mR'><tr id='HY7mR'><dt id='HY7mR'><q id='HY7mR'><span id='HY7mR'><b id='HY7mR'><form id='HY7mR'><ins id='HY7mR'></ins><ul id='HY7mR'></ul><sub id='HY7mR'></sub></form><legend id='HY7mR'></legend><bdo id='HY7mR'><pre id='HY7mR'><center id='HY7mR'></center></pre></bdo></b><th id='HY7mR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HY7mR'><tfoot id='HY7mR'></tfoot><dl id='HY7mR'><fieldset id='HY7mR'></fieldset></dl></div>

    2. <tfoot id='HY7mR'></tfoot>
    3. <legend id='HY7mR'><style id='HY7mR'><dir id='HY7mR'><q id='HY7mR'></q></dir></style></legend>

        在 C# 中,如何確定元素的 XSD 定義的 MaxLength

        In C#, how to determine the XSD-defined MaxLength for an element(在 C# 中,如何確定元素的 XSD 定義的 MaxLength)

        <small id='kE9P3'></small><noframes id='kE9P3'>

        <tfoot id='kE9P3'></tfoot>
                <tbody id='kE9P3'></tbody>
              <legend id='kE9P3'><style id='kE9P3'><dir id='kE9P3'><q id='kE9P3'></q></dir></style></legend>
              <i id='kE9P3'><tr id='kE9P3'><dt id='kE9P3'><q id='kE9P3'><span id='kE9P3'><b id='kE9P3'><form id='kE9P3'><ins id='kE9P3'></ins><ul id='kE9P3'></ul><sub id='kE9P3'></sub></form><legend id='kE9P3'></legend><bdo id='kE9P3'><pre id='kE9P3'><center id='kE9P3'></center></pre></bdo></b><th id='kE9P3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kE9P3'><tfoot id='kE9P3'></tfoot><dl id='kE9P3'><fieldset id='kE9P3'></fieldset></dl></div>
                <bdo id='kE9P3'></bdo><ul id='kE9P3'></ul>

                1. 本文介紹了在 C# 中,如何確定元素的 XSD 定義的 MaxLength的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在使用帶有附加 XSD 的 XmlReader 進行驗證.

                  I'm using XmlReader with an attached XSD for validation.

                  在讀取和驗證我的 XML 文檔時,我想在我的 C# 代碼中確定 XSD 中為特定元素指定的maxLength"值.例如,我的 XSD 片段非常簡單地定義為:

                  As my XML document is being read and validated, I want to determine in my C# code the 'maxLength' value specified in the XSD for a particular element. For example, my XSD fragment is very simply defined as:

                  <xsd:element name="testing" minOccurs="0">
                      <xsd:simpleType>
                          <xsd:restriction base="xsd:string">
                              <xsd:maxLength value="10"/>
                          </xsd:restriction>
                      </xsd:simpleType>
                  </xsd:element>
                  

                  我可以使用以下方法輕松獲得minOccurs"值:

                  I can get the 'minOccurs' value easily using:

                  myReader.SchemaInfo.SchemaElement.MinOccurs;
                  

                  但是我如何獲得maxLength"值(在我上面的示例片段中的值為 10)???

                  But how do I get the 'maxLength' value (value of 10 in my example fragment above)???

                  我認為myReader.SchemaInfo.SchemaElement.Constraints"可能會給我這些信息,但該集合的計數(shù)"始終為零.

                  I thought 'myReader.SchemaInfo.SchemaElement.Constraints' might give me this information, but that collection always has a 'Count' of zero.

                  謝謝,

                  拍拍

                  推薦答案

                  你會在這里找到:在文檔驗證期間訪問 XML 模式信息 很好地解釋了如何做到這一點 &更多.

                  you'll find here:Accessing XML Schema Information During Document Validation a good explanation of how to do this & more.

                  這篇關(guān)于在 C# 中,如何確定元素的 XSD 定義的 MaxLength的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調(diào)用按鈕 OnClick)

                      <bdo id='3YizL'></bdo><ul id='3YizL'></ul>
                          <tbody id='3YizL'></tbody>

                        <small id='3YizL'></small><noframes id='3YizL'>

                          <legend id='3YizL'><style id='3YizL'><dir id='3YizL'><q id='3YizL'></q></dir></style></legend>
                          <i id='3YizL'><tr id='3YizL'><dt id='3YizL'><q id='3YizL'><span id='3YizL'><b id='3YizL'><form id='3YizL'><ins id='3YizL'></ins><ul id='3YizL'></ul><sub id='3YizL'></sub></form><legend id='3YizL'></legend><bdo id='3YizL'><pre id='3YizL'><center id='3YizL'></center></pre></bdo></b><th id='3YizL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3YizL'><tfoot id='3YizL'></tfoot><dl id='3YizL'><fieldset id='3YizL'></fieldset></dl></div>

                            <tfoot id='3YizL'></tfoot>
                            主站蜘蛛池模板: 久久免费精品视频 | av免费网站在线观看 | 福利网址 | 国产三级精品三级在线观看四季网 | 中文字幕av中文字幕 | 在线视频a | 蜜臀91视频 | 成人免费观看网站 | 亚洲成人一级 | av看片网站 | 午夜影视网 | 国产91中文| 三级黄片毛片 | 日韩成人免费av | 亚洲精品成人av久久 | 欧美精品久久久 | 成人免费毛片在线观看 | 色橹橹欧美在线观看视频高清 | 蜜桃视频在线观看免费视频网站www | 成人精品在线观看 | 国内精品久久久久久 | 亚洲成av人影片在线观看 | 国产福利久久 | 久久成人一区 | 在线观看国产三级 | 国产成人免费 | eeuss国产一区二区三区四区 | 中文字幕一区二区三区四区五区 | 久久久久久久成人 | 亚洲区一区二 | 国产精品一区二区在线 | 欧美激情亚洲天堂 | 国产色 | 国产精品国产三级国产aⅴ原创 | 亚洲免费在线观看 | 久久福利网站 | 午夜视频在线免费观看 | 九九热在线观看视频 | 欧美精品一二区 | 日本视频在线播放 | 神马久久av|