/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/Overview/vb/showtime.vb
16 строк
459 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
' Visual Basic .NET Document Option Strict On ' <Snippet1> Imports System.Resources Module Example6 Public Sub Main() Dim rm As New ResourceManager("Strings", GetType(Example6).Assembly) Dim timeString As String = rm.GetString("TimeHeader") Console.WriteLine("{0} {1:T}", timeString, Date.Now) End Sub End Module ' The example displays output similar to the following: ' The current time is 2:03:14 PM ' </Snippet1>