다음을 통해 공유


VersionUpgradeEvent.DocumentVersion 속성

Microsoft Office InfoPath 양식의 버전 번호를 가져옵니다.

네임스페이스: Microsoft.Office.Interop.InfoPath
어셈블리: Microsoft.Office.Interop.InfoPath(microsoft.office.interop.infopath.dll)

구문

<DispIdAttribute(1)> _
ReadOnly Property DocumentVersion As String

Dim instance As VersionUpgradeEvent
Dim value As String

value = instance.DocumentVersion
[DispIdAttribute(1)] 
string DocumentVersion { get; }

주의

이 속성은 OnVersionUpgrade 이벤트 중에만 사용할 수 있습니다.

예제

다음 예제에서는 VersionUpgradeEventObject 개체의 DocumentVersion 속성을 사용하여 메시지 상자에 InfoPath 양식의 버전 번호를 표시합니다.

public void OnVersionUpgrade(VersionUpgradeEvent e)
{
 thisXDocument.UI.Alert("The form version: " + e.DocumentVersion + 
  "\nThe form template version: " + e.SolutionVersion);
 e.ReturnStatus = true;   
}

참고 항목

참조

VersionUpgradeEvent 인터페이스
VersionUpgradeEvent 구성원
Microsoft.Office.Interop.InfoPath 네임스페이스