다음을 통해 공유


XmlSchema.Includes 속성

정의

포함된 스키마와 가져온 스키마의 컬렉션을 가져옵니다.

public:
 property System::Xml::Schema::XmlSchemaObjectCollection ^ Includes { System::Xml::Schema::XmlSchemaObjectCollection ^ get(); };
public System.Xml.Schema.XmlSchemaObjectCollection Includes { get; }
member this.Includes : System.Xml.Schema.XmlSchemaObjectCollection
Public ReadOnly Property Includes As XmlSchemaObjectCollection

속성 값

XmlSchemaObjectCollection

포함된 스키마와 가져온 스키마의 XmlSchemaObjectCollection입니다.

설명

메서드에는 Add 매개 변수로 파생된 형식(XmlSchemaImportXmlSchemaIncludeXmlSchemaRedefine)만 XmlSchemaExternal 필요합니다. 다음 예제에서는 기존 개체의 컬렉션에 Includes 포함된 스키마를 추가하는 방법을 보여 줍니다 XmlSchema .

Dim schema As XmlSchema = New XmlSchema()  

Dim textReader As XmlTextReader = New XmlTextReader("include.xsd")  
Dim includeSchema As XmlSchema = XmlSchema.Read(textReader, null)  

Dim include As XmlSchemaInclude = New XmlSchemaInclude()  
include.Schema = includeSchema;  
schema.Includes.Add(include);  
XmlSchema schema = new XmlSchema();  

XmlTextReader textReader = new XmlTextReader("include.xsd");  
XmlSchema includeSchema = XmlSchema.Read(textReader, null);  

XmlSchemaInclude include = new XmlSchemaInclude();  
include.Schema = includeSchema;  
schema.Includes.Add(include);  

적용 대상