XmlTypeAttribute.IncludeInSchema 속성

정의

XML 스키마 문서에 형식을 포함할지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool IncludeInSchema { bool get(); void set(bool value); };
public bool IncludeInSchema { get; set; }
member this.IncludeInSchema : bool with get, set
Public Property IncludeInSchema As Boolean

속성 값

Boolean

XML 스키마 문서에 형식을 포함하려면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 클래스에 XmlTypeAttribute 적용하고 ExtraneousInfo 속성을 false.로 설정합니다IncludeInSchema.


[XmlType(IncludeInSchema=false)]
public ref class ExtraneousInfo{};
[XmlType(IncludeInSchema = false)]
public class ExtraneousInfo
{
   // Insert the members of the class.
}
<XmlType(IncludeInSchema := False)> _
Public Class ExtraneousInfo
    ' Insert the members of the class.
End Class

설명

클래스에 XmlTypeAttribute 적용하여 XML 형식의 네임스페이스, XML 형식 이름 및 XML 스키마 문서에 형식을 포함할지 여부를 지정합니다. 속성을 설정 하는 결과를 보려면를 XmlTypeAttribute 클래스, 실행 파일 또는 DLL로 애플리케이션을 컴파일 및 XML 스키마 정의 도구 (XSD.exe)를 파일에 전달 합니다. 도구는 형식 정의를 포함하여 스키마를 작성합니다.

적용 대상