System.Xml.Schema.XmlSchemaType.GetBuiltInComplexType C# (CSharp) Méthode

GetBuiltInComplexType() public static méthode

public static GetBuiltInComplexType ( XmlQualifiedName qualifiedName ) : XmlSchemaComplexType
qualifiedName XmlQualifiedName
Résultat XmlSchemaComplexType
        public static XmlSchemaComplexType GetBuiltInComplexType(XmlQualifiedName qualifiedName) {
            if (qualifiedName == null) {
                throw new ArgumentNullException("qualifiedName");
            }
            if (qualifiedName.Equals(XmlSchemaComplexType.AnyType.QualifiedName)) {
                return XmlSchemaComplexType.AnyType;
            }
            if (qualifiedName.Equals(XmlSchemaComplexType.UntypedAnyType.QualifiedName)) {
                return XmlSchemaComplexType.UntypedAnyType;
            }
            return null;
        }

Same methods

XmlSchemaType::GetBuiltInComplexType ( XmlTypeCode typeCode ) : XmlSchemaComplexType

Usage Example

        internal static XmlSchemaType GetBuiltInType(XmlQualifiedName qualifiedName)
        {
            XmlSchemaType xmlSchemaType = XmlSchemaType.GetBuiltInSimpleType(qualifiedName);

            if (xmlSchemaType == null)
            {
                xmlSchemaType = XmlSchemaType.GetBuiltInComplexType(qualifiedName);
            }
            return(xmlSchemaType);
        }