ConfigurationElement.SerializeElement(XmlWriter, Boolean) 메서드

정의

파생 클래스에서 구현될 때 이 구성 요소의 내용을 구성 파일에 씁니다.

protected public:
 virtual bool SerializeElement(System::Xml::XmlWriter ^ writer, bool serializeCollectionKey);
protected:
 virtual bool SerializeElement(System::Xml::XmlWriter ^ writer, bool serializeCollectionKey);
protected internal virtual bool SerializeElement(System.Xml.XmlWriter writer, bool serializeCollectionKey);
protected virtual bool SerializeElement(System.Xml.XmlWriter writer, bool serializeCollectionKey);
abstract member SerializeElement : System.Xml.XmlWriter * bool -> bool
override this.SerializeElement : System.Xml.XmlWriter * bool -> bool
Protected Friend Overridable Function SerializeElement (writer As XmlWriter, serializeCollectionKey As Boolean) As Boolean
Protected Overridable Function SerializeElement (writer As XmlWriter, serializeCollectionKey As Boolean) As Boolean

매개 변수

writer
XmlWriter

XmlWriter 구성 파일에 쓰는 파일입니다.

serializeCollectionKey
Boolean

true컬렉션 키 속성만 serialize하려면 이고, 그렇지 않으면 . false

반품

true데이터가 실제로 serialize되었으면 이고, 그렇지 않으면 . false

예외

현재 특성은 더 높은 구성 수준에서 잠깁니다.

예제

다음 예제에서는 메서드를 확장하는 SerializeElement 방법을 보여줍니다.

protected override bool SerializeElement(
    System.Xml.XmlWriter writer, 
    bool serializeCollectionKey)
{
    bool ret = base.SerializeElement(writer, 
        serializeCollectionKey);
    // You can enter your custom processing code here.
    return ret;
}
Protected Overrides Function SerializeElement(ByVal writer _
    As System.Xml.XmlWriter, _
    ByVal serializeCollectionKey As Boolean) As Boolean

    Dim ret As Boolean = _
        MyBase.SerializeElement(writer, serializeCollectionKey)
    ' Enter your custom processing code here.
    Return ret
End Function 'SerializeElement

적용 대상