本文整理匯總了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);
}