AddDefaultXmlType() 정적인 개인적인 메소드

static private AddDefaultXmlType ( XmlSchemaSet schemas, string localName, string ns ) : void
schemas System.Xml.Schema.XmlSchemaSet
localName string
ns string
리턴 void
예제 #1
0
        public static void AddDefaultSchema(XmlSchemaSet schemas, XmlQualifiedName typeQName)
        {
            ArgumentNullException.ThrowIfNull(schemas);
            ArgumentNullException.ThrowIfNull(typeQName);

            SchemaExporter.AddDefaultXmlType(schemas, typeQName.Name, typeQName.Namespace);
        }
 public static void AddDefaultSchema(XmlSchemaSet schemas, XmlQualifiedName typeQName)
 {
     if (schemas == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("schemas");
     }
     if (typeQName == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("typeQName");
     }
     SchemaExporter.AddDefaultXmlType(schemas, typeQName.Name, typeQName.Namespace);
 }
예제 #3
0
 public static void AddDefaultSchema(XmlSchemaSet schemas, XmlQualifiedName typeQName)
 {
     if (schemas == null)
     {
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(schemas));
     }
     if (typeQName == null)
     {
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(typeQName));
     }
     SchemaExporter.AddDefaultXmlType(schemas, typeQName.Name, typeQName.Namespace);
 }