_XDocument3.SetDirty(Boolean) Method
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.
public:
void SetDirty(bool vfIsDirty);
public void SetDirty (bool vfIsDirty);
abstract member SetDirty : bool -> unit
Public Sub SetDirty (vfIsDirty As Boolean)
Parameters
- vfIsDirty
- Boolean
Specifies whether the form is to be marked as unmodified or not.
Implements
Examples
In the following example, the IsDirty property of the current form is set to false so that the user will not be prompted to save the form when it is closed.
thisXDocument.<span class="label">SetDirty</span>(false);
Remarks
The SetDirty method can be used from the OnSubmitRequest event to force a document to be marked as unchanged. InfoPath will therefore not request the user to save the form when it is closed.
The SetDirty method can also be used from the OnSaveRequest event to programmatically mark the form as changed or unchanged since it was last saved.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기