| title | Alias Clause (Visual Basic) | |
|---|---|---|
| ms.date | 07/20/2015 | |
| ms.prod | .net | |
| ms.reviewer | ||
| ms.suite | ||
| ms.technology |
|
|
| ms.topic | article | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 58c06b11-465d-4d87-906a-73200a3d7f19 | |
| caps.latest.revision | 11 | |
| author | dotnet-bot | |
| ms.author | dotnetcontent |
Indicates that an external procedure has another name in its DLL.
The Alias keyword can be used in this context:
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]