Skip to content

Commit 6b1dc93

Browse files
authored
escape _ (#11620)
* escape _ * escape _
1 parent ed379a1 commit 6b1dc93

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

docs/visual-basic/developing-apps/customizing-extending-my/customizing-which-objects-are-available-in-my.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ helpviewer_keywords:
77
ms.assetid: 4e8279c2-ed5b-4681-8903-8a6671874000
88
---
99
# Customizing Which Objects are Available in My (Visual Basic)
10+
1011
This topic describes how you can control which `My` objects are enabled by setting your project's `_MYTYPE` conditional-compilation constant. The Visual Studio Integrated Development Environment (IDE) keeps the `_MYTYPE` conditional-compilation constant for a project in sync with the project's type.
1112

12-
## Predefined _MYTYPE Values
13-
You must use the `/define` compiler option to set the `_MYTYPE` conditional-compilation constant. When specifying your own value for the `_MYTYPE` constant, you must enclose the string value in backslash/quotation mark (\\") sequences. For example, you could use:
13+
## Predefined \_MYTYPE Values
14+
15+
You must use the `/define` compiler option to set the `_MYTYPE` conditional-compilation constant. When specifying your own value for the `_MYTYPE` constant, you must enclose the string value in backslash/quotation mark (\\") sequences. For example, you could use:
1416

1517
```
1618
/define:_MYTYPE=\"WindowsForms\"
1719
```
1820

1921
This table shows what the `_MYTYPE` conditional-compilation constant is set to for several project types.
2022

21-
|Project type|_MYTYPE value|
23+
|Project type|\_MYTYPE value|
2224
|------------------|--------------------|
2325
|Class Library|"Windows"|
2426
|Console Application|"Console"|
@@ -31,12 +33,13 @@ This topic describes how you can control which `My` objects are enabled by setti
3133
|Empty|"Empty"|
3234

3335
> [!NOTE]
34-
> All conditional-compilation string comparisons are case-sensitive, regardless of how the `Option Compare` statement is set.
36+
> All conditional-compilation string comparisons are case-sensitive, regardless of how the `Option Compare` statement is set.
3537
36-
## Dependent _MY Compilation Constants
37-
The `_MYTYPE` conditional-compilation constant, in turn, controls the values of several other `_MY` compilation constants:
38+
## Dependent \_MY Compilation Constants
39+
40+
The `_MYTYPE` conditional-compilation constant, in turn, controls the values of several other `_MY` compilation constants:
3841

39-
|_MYTYPE|_MYAPPLICATIONTYPE|_MYCOMPUTERTYPE|_MYFORMS|_MYUSERTYPE|_MYWEBSERVICES|
42+
|\_MYTYPE|\_MYAPPLICATIONTYPE|\_MYCOMPUTERTYPE|\_MYFORMS|\_MYUSERTYPE|\_MYWEBSERVICES|
4043
|--------------|-------------------------|----------------------|---------------|------------------|---------------------|
4144
|"Console"|"Console"|"Windows"|Undefined|"Windows"|TRUE|
4245
|"Custom"|Undefined|Undefined|Undefined|Undefined|Undefined|
@@ -50,7 +53,7 @@ This topic describes how you can control which `My` objects are enabled by setti
5053
By default, undefined conditional-compilation constants resolve to `FALSE`. You can specify values for the undefined constants when compiling your project to override the default behavior.
5154

5255
> [!NOTE]
53-
> When `_MYTYPE` is set to "Custom", the project contains the `My` namespace, but it contains no objects. However, setting `_MYTYPE` to "Empty" prevents the compiler from adding the `My` namespace and its objects.
56+
> When `_MYTYPE` is set to "Custom", the project contains the `My` namespace, but it contains no objects. However, setting `_MYTYPE` to "Empty" prevents the compiler from adding the `My` namespace and its objects.
5457
5558
This table describes the effects of the predefined values of the `_MY` compilation constants.
5659

docs/visual-basic/developing-apps/customizing-extending-my/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can customize project templates to provide additional `My` objects. This mak
2121
Describes how to specify your own extensions to the application model by overriding members of the <xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase> class.
2222

2323
[Customizing Which Objects are Available in My](../../../visual-basic/developing-apps/customizing-extending-my/customizing-which-objects-are-available-in-my.md)
24-
Describes how to control which `My` objects are enabled by setting your project's _MYTYPE conditional-compilation constant.
24+
Describes how to control which `My` objects are enabled by setting your project's \_MYTYPE conditional-compilation constant.
2525

2626
## Related Sections
2727
[Development with My](../../../visual-basic/developing-apps/development-with-my/index.md)

0 commit comments

Comments
 (0)