XmlSchemaSet.Schemas 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에서 XSD(XML 스키마 정의 언어) 스키마 컬렉션을 반환합니다 XmlSchemaSet.
오버로드
| Name | Description |
|---|---|
| Schemas() |
에 있는 모든 XSD(XML 스키마 정의 언어) 스키마의 컬렉션을 반환합니다 XmlSchemaSet. |
| Schemas(String) |
지정된 네임스페이스에 속하는 모든 XSD(XML 스키마 정의 언어) 스키마의 컬렉션을 반환합니다 XmlSchemaSet . |
Schemas()
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
에 있는 모든 XSD(XML 스키마 정의 언어) 스키마의 컬렉션을 반환합니다 XmlSchemaSet.
public:
System::Collections::ICollection ^ Schemas();
public System.Collections.ICollection Schemas();
member this.Schemas : unit -> System.Collections.ICollection
Public Function Schemas () As ICollection
반품
ICollection 에 추가된 모든 스키마를 포함하는 개체입니다XmlSchemaSet. 스키마가 추가 XmlSchemaSet되지 않은 경우 빈 ICollection 개체가 반환됩니다.
예제
다음 예제에서는 의 모든 스키마를 반복하는 방법을 보여 줍니다 XmlSchemaSet.
Dim schemaSet As XmlSchemaSet = New XmlSchemaSet
schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd")
Dim schema As XmlSchema
For Each schema In schemaSet.Schemas()
schema.Write(Console.Out)
Next
XmlSchemaSet schemaSet = new XmlSchemaSet();
schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd");
foreach (XmlSchema schema in schemaSet.Schemas())
{
schema.Write(Console.Out);
}
설명
이 메서드는 가져온 스키마에 간접적으로 추가된 스키마를 XmlSchemaSet 반환합니다.
메모
메서드는 Schemas 사용되지 GetEnumerator않는 메서드와 동일합니다XmlSchemaCollection.
적용 대상
Schemas(String)
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
- Source:
- XmlSchemaSet.cs
지정된 네임스페이스에 속하는 모든 XSD(XML 스키마 정의 언어) 스키마의 컬렉션을 반환합니다 XmlSchemaSet .
public:
System::Collections::ICollection ^ Schemas(System::String ^ targetNamespace);
public System.Collections.ICollection Schemas(string? targetNamespace);
public System.Collections.ICollection Schemas(string targetNamespace);
member this.Schemas : string -> System.Collections.ICollection
Public Function Schemas (targetNamespace As String) As ICollection
매개 변수
- targetNamespace
- String
스키마 targetNamespace 속성입니다.
반품
ICollection 지정된 네임스페이스에 속하는 스키마에 XmlSchemaSet 추가된 모든 스키마를 포함하는 개체입니다. 스키마가 추가 XmlSchemaSet되지 않은 경우 빈 ICollection 개체가 반환됩니다.
예제
다음 예제에서는 네임스페http://www.contoso.com/books이스의 모든 스키마를 XmlSchemaSet 반복하는 방법을 보여 줍니다.
Dim schemaSet As XmlSchemaSet = New XmlSchemaSet
schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd")
Dim schema As XmlSchema
For Each schema In schemaSet.Schemas("http://www.contoso.com/books")
schema.Write(Console.Out)
Next
XmlSchemaSet schemaSet = new XmlSchemaSet();
schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd");
foreach (XmlSchema schema in schemaSet.Schemas("http://www.contoso.com/books"))
{
schema.Write(Console.Out);
}
설명
매개 변수이거나 네임스페이 targetNamespacenullEmpty스가 없는 모든 스키마가 반환됩니다.
이 메서드는 가져온 스키마에 간접적으로 추가된 스키마를 XmlSchemaSet 반환합니다.
메모
메서드는 Schemas 사용되지 Item[]않는 메서드와 동일합니다XmlSchemaCollection.