다음을 통해 공유


XmlCharacterData.ReplaceData 메서드

지정된 오프셋에서 시작하여 지정된 수의 문자를 지정된 문자열로 교체합니다.

네임스페이스: System.Xml
어셈블리: System.Xml(system.xml.dll)

구문

‘선언
Public Overridable Sub ReplaceData ( _
    offset As Integer, _
    count As Integer, _
    strData As String _
)
‘사용 방법
Dim instance As XmlCharacterData
Dim offset As Integer
Dim count As Integer
Dim strData As String

instance.ReplaceData(offset, count, strData)
public virtual void ReplaceData (
    int offset,
    int count,
    string strData
)
public:
virtual void ReplaceData (
    int offset, 
    int count, 
    String^ strData
)
public void ReplaceData (
    int offset, 
    int count, 
    String strData
)
public function ReplaceData (
    offset : int, 
    count : int, 
    strData : String
)

매개 변수

  • offset
    교체를 시작할 문자열 내의 위치입니다.
  • count
    교체할 문자 수입니다.
  • strData
    기존 문자열 데이터를 대체하는 새 데이터입니다.

설명

이 메서드는 XmlNodeChangedAction.Change 이벤트를 발생시킵니다.

상속자 참고 사항 이벤트가 올바르게 발생하도록 파생 클래스에서 ReplaceData를 재정의하려면 이벤트를 직접 발생시키거나 이 메서드의 기본 버전을 호출해야 합니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

XmlCharacterData 클래스
XmlCharacterData 멤버
System.Xml 네임스페이스