_XDocument3.IsDirty Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the data in a Microsoft Office InfoPath form has been modified since it was last saved.
public:
property bool IsDirty { bool get(); };
public bool IsDirty { get; }
member this.IsDirty : bool
Public ReadOnly Property IsDirty As Boolean
Property Value
true if the data in the form has been modified since it was last saved; otherwise false.
Implements
Examples
In the following example, the IsDirty property of the XDocument object is used to determine whether data in the form has been changed:
if (thisXDocument.<span class="label">IsDirty</span>)
{
thisXDocument.UI.Alert("Data has been changed.");
}
else
{
thisXDocument.UI.Alert("Data has not been changed.");
}
In the following example, the IsDirty property of the XDocument object is used to determine whether data in the form has been changed:
if (thisXDocument.<span class="label">IsDirty</span>)
{
thisXDocument.UI.Alert("Data has been changed.");
}
else
{
thisXDocument.UI.Alert("Data has not been changed.");
}
Remarks
If the IsDirty property is true, data in the form's underlying XML document has been changed since it was last saved. If false, no changes have occurred.
Note: Changes that occur during an OnLoad event will not result in the IsDirty property being set to true.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기