XmlReaderSettings 생성자

정의

XmlReaderSettings 클래스의 새 인스턴스를 초기화합니다.

오버로드

XmlReaderSettings()

XmlReaderSettings 클래스의 새 인스턴스를 초기화합니다.

XmlReaderSettings(XmlResolver)
사용되지 않습니다.

XmlReaderSettings 클래스의 새 인스턴스를 초기화합니다.

XmlReaderSettings()

XmlReaderSettings 클래스의 새 인스턴스를 초기화합니다.

public:
 XmlReaderSettings();
public XmlReaderSettings ();
Public Sub New ()

예제

다음은 처리 명령, 주석 및 중요하지 않은 공백을 제거하는 판독기를 생성하는 데 사용할 수 있는 설정 개체를 만듭니다.

// Set the reader settings.
XmlReaderSettings^ settings = gcnew XmlReaderSettings;
settings->IgnoreComments = true;
settings->IgnoreProcessingInstructions = true;
settings->IgnoreWhitespace = true;
// Set the reader settings.
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreComments = true;
settings.IgnoreProcessingInstructions = true;
settings.IgnoreWhitespace = true;
' Set the reader settings.
Dim settings as XmlReaderSettings = new XmlReaderSettings()
settings.IgnoreComments = true
settings.IgnoreProcessingInstructions = true
settings.IgnoreWhitespace = true

설명

다음 표에서 인스턴스에 대 한 초기 속성 값을 보여 줍니다. XmlReaderSettings합니다.

속성 초기 값
Async false.
CheckCharacters true.
ConformanceLevel Document.
IgnoreComments false.
IgnoreProcessingInstructions false.
IgnoreWhitespace false.
LineNumberOffset 0.
LinePositionOffset 0.
MaxCharactersFromEntities 0(엔터티 확장으로 인해 발생하는 문자 수에는 제한이 없음).
MaxCharactersInDocument 0(XML 문서의 크기에 제한이 없음)
NameTable null.
DtdProcessing Prohibit
ProhibitDtd true. 이 속성은 사용되지 않습니다. 대신 DtdProcessing를 사용하세요. 기본값 true DtdProcessing Prohibit으로 설정한 ProhibitDtd 경우 . 로 설정 ProhibitDtd false DtdProcessing Parse했다면 .
Schemas XmlSchemaSet 개체입니다.
ValidationFlags ProcessIdentityConstraints.
ValidationType None.
XmlResolver XmlUrlResolver 개체입니다.

추가 정보

적용 대상

XmlReaderSettings(XmlResolver)

주의

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

XmlReaderSettings 클래스의 새 인스턴스를 초기화합니다.

public:
 XmlReaderSettings(System::Xml::XmlResolver ^ resolver);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public XmlReaderSettings (System.Xml.XmlResolver resolver);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
new System.Xml.XmlReaderSettings : System.Xml.XmlResolver -> System.Xml.XmlReaderSettings
Public Sub New (resolver As XmlResolver)

매개 변수

resolver
XmlResolver

XML 확인자입니다.

특성

추가 정보

적용 대상