VersionUpgradeEvent.SolutionVersion 속성
Microsoft Office InfoPath 2007 양식 서식 파일의 버전 번호를 가져옵니다.
이 속성은 CLS 규격이 아닙니다.
네임스페이스: Microsoft.Office.Interop.InfoPath.SemiTrust
어셈블리: Microsoft.Office.Interop.InfoPath.SemiTrust(microsoft.office.interop.infopath.semitrust.dll)
구문
<DispIdAttribute(2)> _
ReadOnly Property SolutionVersion As String
Dim instance As VersionUpgradeEvent
Dim value As String
value = instance.SolutionVersion
[DispIdAttribute(2)]
string SolutionVersion { get; }
주의
이 속성은 OnVersionUpgrade 이벤트가 실행되는 동안에만 사용할 수 있습니다.
![]() |
---|
이 멤버는 현재 열려 있는 양식과 같은 도메인에서 실행하는 양식 또는 도메인 간 권한이 부여된 양식에서만 액세스할 수 있습니다. |
예제
다음 예제에서는 VersionUpgradeEventObject 개체의 SolutionVersion 속성을 사용하여 메시지 상자에 InfoPath 양식 서식 파일의 버전 번호를 표시합니다.
[InfoPathEventHandler(EventType=InfoPathEventType.OnVersionUpgrade)]
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.SemiTrust 네임스페이스