System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping C# (CSharp) Method

ImportMembersMapping() public method

public ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc ) : XmlMembersMapping
elementName string
ns string
members XmlReflectionMember
hasWrapperElement bool
rpc bool
return XmlMembersMapping
        public XmlMembersMapping ImportMembersMapping(string elementName, string ns, XmlReflectionMember[] members, bool hasWrapperElement, bool rpc)
        {
            return ImportMembersMapping(elementName, ns, members, hasWrapperElement, rpc, false);
        }

Same methods

XmlReflectionImporter::ImportMembersMapping ( XmlReflectionMember xmlReflectionMembers, string ns, bool hasWrapperElement, bool rpc, bool openModel, RecursionLimiter limiter ) : MembersMapping
XmlReflectionImporter::ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement ) : XmlMembersMapping
XmlReflectionImporter::ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc, bool openModel ) : XmlMembersMapping
XmlReflectionImporter::ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc, bool openModel, XmlMappingAccess access ) : XmlMembersMapping

Usage Example

		public void ExportXmlSerializable_NestedClassMapping () {

			XmlSchemas schemas = new XmlSchemas ();

			XmlReflectionMember xmlReflectionMember = new XmlReflectionMember ();
			XmlSchemaExporter xmlSchemaExporter = new XmlSchemaExporter (schemas);
			XmlReflectionImporter xmlReflectionImporter = new XmlReflectionImporter ();

			//Export mapping for DataSet1 class.
			xmlReflectionMember.MemberType = typeof (DataSet1);
			XmlMembersMapping xmlMembersMapping = xmlReflectionImporter.ImportMembersMapping ("DataSet1Response", "ResponseNamespace",
				new XmlReflectionMember [] { xmlReflectionMember }, true);

			xmlSchemaExporter.ExportMembersMapping (xmlMembersMapping);

			//Export mapping for nested of DataSet1 class.
			xmlReflectionMember.MemberType = typeof (DataSet1.DataTable1DataTable);
			xmlMembersMapping = xmlReflectionImporter.ImportMembersMapping ("DataTable1DataTableResponse", "ResponseNamespace",
				new XmlReflectionMember [] { xmlReflectionMember }, true);

			xmlSchemaExporter.ExportMembersMapping (xmlMembersMapping);

		}
All Usage Examples Of System.Xml.Serialization.XmlReflectionImporter::ImportMembersMapping