Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.12 KB

File metadata and controls

32 lines (27 loc) · 1.12 KB
title Alias Clause (Visual Basic)
ms.date 07/20/2015
ms.prod .net
ms.reviewer
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
f1_keywords
vb.Alias
helpviewer_keywords
Alias keyword [Visual Basic]
ms.assetid 58c06b11-465d-4d87-906a-73200a3d7f19
caps.latest.revision 11
author dotnet-bot
ms.author dotnetcontent

Alias Clause (Visual Basic)

Indicates that an external procedure has another name in its DLL.

Remarks

The Alias keyword can be used in this context:

Declare Statement

In the following example, the Alias keyword is used to provide the name of the function in advapi32.dll, GetUserNameA, that getUserName is used in place of in this example. Function getUserName is called in sub getUser, which displays the name of the current user.

[!code-vbVbVbalrStatements#15]

See Also

Keywords