久久久久久久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 進(jìn)行驗證.

                  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)???

                  我認(rèn)為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色在线 | 亚洲精品一区二区在线观看 | 亚洲欧美国产精品久久 | 日韩欧美亚洲一区 | 国产精品99久久久久久宅男 | 美女在线国产 | 看a网站 | 免费在线看黄视频 | 三级国产三级在线 | 国产农村妇女毛片精品久久麻豆 | 亚洲三区视频 | 中文字幕精品一区二区三区精品 | 久久与欧美 | 中文字幕视频一区二区 | 亚洲精品久久久蜜桃网站 | www.一区二区三区.com | 超碰欧美 | 99re超碰| 久久逼逼 | 日韩中文一区 | 久久久一二三区 | 日韩中文字幕视频在线观看 | 一区二区三区国产 | 欧美一区二区三区在线观看视频 | 久久久亚洲一区 | 国产精品久久久久国产a级 欧美日韩国产免费 | 欧美久久电影 | 亚洲成人av | 国产内谢 | 国产精品夜间视频香蕉 | 五月槐花香 | 日韩在线播放视频 | 在线观看毛片网站 | 很黄很污的网站 | 91精品国产综合久久久久久蜜臀 |