Събитие
Създаване на интелигентни приложения
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаТози браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
Defines conditional compiler constants for Visual Basic.
#Const constname = expression
constname
Required. Name of the constant being defined.
expression
Required. Literal, other conditional compiler constant, or any combination that includes any or all arithmetic or logical operators except Is
.
Conditional compiler constants are always private to the file in which they appear. You cannot create public compiler constants using the #Const
directive; you can create them only in the user interface or with the /define
compiler option.
You can use only conditional compiler constants and literals in expression
. Using a standard constant defined with Const
causes an error. Conversely, you can use constants defined with the #Const
keyword only for conditional compilation. Constants can also be undefined, in which case they have a value of Nothing
.
This example uses the #Const
directive.
#Const MyLocation = "USA"
#Const Version = "8.0.0012"
#Const CustomerNumber = 36
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка:
Събитие
Създаване на интелигентни приложения
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сега