當前位置: 首頁>>代碼示例>>C#>>正文


C# XsdBuilder.ParseEnum方法代碼示例

本文整理匯總了C#中System.Xml.Schema.XsdBuilder.ParseEnum方法的典型用法代碼示例。如果您正苦於以下問題:C# XsdBuilder.ParseEnum方法的具體用法?C# XsdBuilder.ParseEnum怎麽用?C# XsdBuilder.ParseEnum使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Xml.Schema.XsdBuilder的用法示例。


在下文中一共展示了XsdBuilder.ParseEnum方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: BuildElement_Form

 private static void BuildElement_Form(XsdBuilder builder, string value) {
     builder.element.Form = (XmlSchemaForm)builder.ParseEnum(value, "form", FormStringValues);
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:XsdBuilder.cs

示例2: BuildAny_ProcessContents

 private static void BuildAny_ProcessContents(XsdBuilder builder, string value) {
     builder.anyElement.ProcessContents = (XmlSchemaContentProcessing)builder.ParseEnum(value, "processContents", ProcessContentsStringValues);
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:XsdBuilder.cs

示例3: BuildAttribute_Use

 private static void BuildAttribute_Use(XsdBuilder builder, string value) {
     builder.attribute.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", UseStringValues);
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:XsdBuilder.cs

示例4: BuildAttribute_Form

 private static void BuildAttribute_Form(XsdBuilder builder, string value) {
     builder.attribute.Form = (XmlSchemaForm)builder.ParseEnum(value, "form", FormStringValues);
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:XsdBuilder.cs

示例5: BuildSchema_ElementFormDefault

 private static void BuildSchema_ElementFormDefault(XsdBuilder builder, string value) {
     builder.schema.ElementFormDefault = (XmlSchemaForm)builder.ParseEnum(value, "elementFormDefault", FormStringValues);
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:XsdBuilder.cs

示例6: or

 /*
     <schema 
       attributeFormDefault = qualified | unqualified : unqualified
       blockDefault = #all or (possibly empty) subset of {substitution, extension, restriction} 
       elementFormDefault = qualified | unqualified : unqualified
       finalDefault = #all or (possibly empty) subset of {extension, restriction} 
       id = ID 
       targetNamespace = uriReference 
       version = string 
       {any attributes with non-schema namespace . . .}>
       Content: ((include | import | redefine | annotation)* , ((attribute | attributeGroup | complexType | element | group | notation | simpleType) , annotation*)*)
     </schema>
 */
 
 private static void BuildSchema_AttributeFormDefault(XsdBuilder builder, string value) {
     builder.schema.AttributeFormDefault = (XmlSchemaForm)builder.ParseEnum(value, "attributeFormDefault", FormStringValues);
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:17,代碼來源:XsdBuilder.cs

示例7: BuildAnyAttribute_ProcessContents

 private static void BuildAnyAttribute_ProcessContents(XsdBuilder builder, string value)
 {
     builder._anyAttribute.ProcessContents = (XmlSchemaContentProcessing)builder.ParseEnum(value, "processContents", s_processContentsStringValues);
 }
開發者ID:dotnet,項目名稱:corefx,代碼行數:4,代碼來源:XsdBuilder.cs


注:本文中的System.Xml.Schema.XsdBuilder.ParseEnum方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。