|
816 | 816 | ## Remarks |
817 | 817 | The `My.Application.Info.Version` property gets a <xref:System.Version> object containing the version number of the application. You can use the <xref:System.Version.Major*>, <xref:System.Version.Minor*>, <xref:System.Version.Build*>, and <xref:System.Version.Revision*> properties of the <xref:System.Version> object to access specific version information about the application. |
818 | 818 |
|
819 | | - ClickOnce-deployed applications should use the <xref:System.Deployment.Application.ApplicationDeployment.CurrentVersion> property of the <xref:Microsoft.VisualBasic.ApplicationServices.ConsoleApplicationBase.Deployment> property. |
| 819 | + ClickOnce-deployed applications should use the `My.Application.Deployment.CurrentVersion` property. |
820 | 820 |
|
821 | 821 | ## Availability by Project Type |
822 | 822 |
|
823 | | -|Project type|Available| |
824 | | -|------------------|---------------| |
825 | | -|Windows Forms Application|**Yes**| |
826 | | -|Class Library|**Yes**| |
827 | | -|Console Application|**Yes**| |
828 | | -|Windows Forms Control Library|**Yes**| |
829 | | -|Web Control Library|No| |
830 | | -|Windows Service|**Yes**| |
831 | | -|Web Site|No| |
832 | | -
|
833 | | -
|
| 823 | +| Project type | Available | |
| 824 | +|-------------------------------|-----------| |
| 825 | +| Windows Forms Application | **Yes** | |
| 826 | +| Class Library | **Yes** | |
| 827 | +| Console Application | **Yes** | |
| 828 | +| Windows Forms Control Library | **Yes** | |
| 829 | +| Web Control Library | No | |
| 830 | +| Windows Service | **Yes** | |
| 831 | +| Web Site | No | |
834 | 832 |
|
835 | 833 | ## Examples |
836 | 834 | This example uses the `My.Application.Info.Version` property to display the version of the application. |
|
841 | 839 | </remarks> |
842 | 840 | <exception cref="T:System.Security.SecurityException">The application does not have sufficient permissions to access the assembly version.</exception> |
843 | 841 | <altmember cref="P:Microsoft.VisualBasic.ApplicationServices.ApplicationBase.Info" /> |
844 | | - <altmember cref="P:System.Deployment.Application.ApplicationDeployment.CurrentVersion" /> |
845 | 842 | <altmember cref="T:System.Version" /> |
846 | 843 | <related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related> |
847 | 844 | </Docs> |
|
0 commit comments