本文整理汇总了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);
}
示例2: BuildAny_ProcessContents
private static void BuildAny_ProcessContents(XsdBuilder builder, string value) {
builder.anyElement.ProcessContents = (XmlSchemaContentProcessing)builder.ParseEnum(value, "processContents", ProcessContentsStringValues);
}
示例3: BuildAttribute_Use
private static void BuildAttribute_Use(XsdBuilder builder, string value) {
builder.attribute.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", UseStringValues);
}
示例4: BuildAttribute_Form
private static void BuildAttribute_Form(XsdBuilder builder, string value) {
builder.attribute.Form = (XmlSchemaForm)builder.ParseEnum(value, "form", FormStringValues);
}
示例5: BuildSchema_ElementFormDefault
private static void BuildSchema_ElementFormDefault(XsdBuilder builder, string value) {
builder.schema.ElementFormDefault = (XmlSchemaForm)builder.ParseEnum(value, "elementFormDefault", FormStringValues);
}
示例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);
}
示例7: BuildAnyAttribute_ProcessContents
private static void BuildAnyAttribute_ProcessContents(XsdBuilder builder, string value)
{
builder._anyAttribute.ProcessContents = (XmlSchemaContentProcessing)builder.ParseEnum(value, "processContents", s_processContentsStringValues);
}