diff --git a/xml/Microsoft.VisualBasic.Compatibility.VB6/DirListBox.xml b/xml/Microsoft.VisualBasic.Compatibility.VB6/DirListBox.xml
index 1284816a99f..f44f6c5ed4b 100644
--- a/xml/Microsoft.VisualBasic.Compatibility.VB6/DirListBox.xml
+++ b/xml/Microsoft.VisualBasic.Compatibility.VB6/DirListBox.xml
@@ -933,7 +933,7 @@
The `Path` property can also be set to a qualified network path without a drive connection using the following syntax:
-```
+```txt
\\servername\sharename\path
```
diff --git a/xml/Microsoft.VisualBasic.Compatibility.VB6/FileListBox.xml b/xml/Microsoft.VisualBasic.Compatibility.VB6/FileListBox.xml
index 81ae42df177..2a9917ece6d 100644
--- a/xml/Microsoft.VisualBasic.Compatibility.VB6/FileListBox.xml
+++ b/xml/Microsoft.VisualBasic.Compatibility.VB6/FileListBox.xml
@@ -696,7 +696,7 @@
The `Path` property can also be set to a qualified network path without a drive connection using the following syntax:
-```
+```txt
\\servername\sharename\path
```
diff --git a/xml/Microsoft.Windows.Themes/BulletChrome.xml b/xml/Microsoft.Windows.Themes/BulletChrome.xml
index 82cad17ecd6..257d52f8b78 100644
--- a/xml/Microsoft.Windows.Themes/BulletChrome.xml
+++ b/xml/Microsoft.Windows.Themes/BulletChrome.xml
@@ -66,13 +66,14 @@
## XAML Object Element Usage
-```
+```xaml
```
## XAML Values
- `theme:`
+
+ `theme:`\
An xmlns prefix for the CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
]]>
diff --git a/xml/Microsoft.Windows.Themes/ButtonChrome.xml b/xml/Microsoft.Windows.Themes/ButtonChrome.xml
index 8b108a618d8..40a38bc9326 100644
--- a/xml/Microsoft.Windows.Themes/ButtonChrome.xml
+++ b/xml/Microsoft.Windows.Themes/ButtonChrome.xml
@@ -66,13 +66,13 @@
## XAML Object Element Usage
-```
+```xaml
```
## XAML Values
- `theme:`
+ `theme:`\
An xmlns prefix for the CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
]]>
diff --git a/xml/Microsoft.Windows.Themes/ClassicBorderDecorator.xml b/xml/Microsoft.Windows.Themes/ClassicBorderDecorator.xml
index ea1c45455cf..19199737fbb 100644
--- a/xml/Microsoft.Windows.Themes/ClassicBorderDecorator.xml
+++ b/xml/Microsoft.Windows.Themes/ClassicBorderDecorator.xml
@@ -32,7 +32,7 @@
## XAML Object Element Usage
-```
+```xaml
singleChild
@@ -40,10 +40,10 @@
## XAML Values
- `theme:`
+ `theme:`\
An xmlns prefix for the CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
- *singleChild*
+ *singleChild*\
A single object element child, representing the object that the border is drawn around. This object must be a . Typical child elements are either a fixed (for example a ) or are a presenter or another decorator in compositing.
]]>
diff --git a/xml/Microsoft.Windows.Themes/DataGridHeaderBorder.xml b/xml/Microsoft.Windows.Themes/DataGridHeaderBorder.xml
index 2e5ec7c3303..73178b9070b 100644
--- a/xml/Microsoft.Windows.Themes/DataGridHeaderBorder.xml
+++ b/xml/Microsoft.Windows.Themes/DataGridHeaderBorder.xml
@@ -81,7 +81,7 @@
## XAML Object Element Usage
-```
+```xaml
singleChild
@@ -89,10 +89,10 @@
## XAML Values
- `theme:`
+ `theme:`\
An xmlns prefix for the CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
- *singleChild*
+ *singleChild*\
A single object element child, representing the object that the border is drawn around. This object must be a .
]]>
diff --git a/xml/Microsoft.Windows.Themes/ListBoxChrome.xml b/xml/Microsoft.Windows.Themes/ListBoxChrome.xml
index b7a05be2ed3..987c207dccd 100644
--- a/xml/Microsoft.Windows.Themes/ListBoxChrome.xml
+++ b/xml/Microsoft.Windows.Themes/ListBoxChrome.xml
@@ -41,7 +41,7 @@
## XAML Object Element Usage
-```
+```xaml
singleChild
@@ -49,10 +49,10 @@
## XAML Values
- `theme:`
+ `theme:`\
An xmlns prefix for the CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
- *singleChild*
+ *singleChild*\
A single object element child, representing the object that the decorator is drawn around. This object must be a .
]]>
diff --git a/xml/Microsoft.Windows.Themes/ScrollChrome.xml b/xml/Microsoft.Windows.Themes/ScrollChrome.xml
index b0c3cf30449..de8e08ab6ff 100644
--- a/xml/Microsoft.Windows.Themes/ScrollChrome.xml
+++ b/xml/Microsoft.Windows.Themes/ScrollChrome.xml
@@ -73,13 +73,13 @@
## XAML Object Element Usage
-```
+```xaml
```
## XAML Values
- `theme:`
+ `theme:`\
An xmlns prefix for the CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
]]>
diff --git a/xml/System.Activities.Presentation/ActivityDesigner.xml b/xml/System.Activities.Presentation/ActivityDesigner.xml
index 39e46c8d5ac..87df0ff6556 100644
--- a/xml/System.Activities.Presentation/ActivityDesigner.xml
+++ b/xml/System.Activities.Presentation/ActivityDesigner.xml
@@ -23,21 +23,16 @@
The inherits from and primarily adds the default styling, as well as the ability to customize the icon via the property. It should be used whenever you are creating a designer for a type that derives from . When associated with an type, the property will point to the ModelItem hierarchy describing the instance of that type being edited.
-
-
## Examples
In the sample code below, a `First2of3` activity is defined first, then the code for the First2of3 designer is shown, and finally it is shown how to use the Designer attribute to associate the activity with the designer is provided.
-```
-
-//The First2of3 activity
+```csharp
using System.Activities;
using System.Collections.Generic;
using System.Linq;
namespace Microsoft.Activities.Documentation.ActivityTypes
{
-
public sealed class First2of3 : NativeActivity
{
public Activity Activity1 { get; set; }
@@ -112,10 +107,9 @@ namespace Microsoft.Activities.Documentation.ActivityTypes
-//Code for associating the activity with the designer using the Designer attribute.
+// Code for associating the activity with the designer using the Designer attribute.
[Designer(typeof(First2of3Designer))]
public sealed class First2of3 : NativeActivity
-
```
]]>
diff --git a/xml/System.ComponentModel.Design/DesignerTransaction.xml b/xml/System.ComponentModel.Design/DesignerTransaction.xml
index 3988266df49..a78f2628cf3 100644
--- a/xml/System.ComponentModel.Design/DesignerTransaction.xml
+++ b/xml/System.ComponentModel.Design/DesignerTransaction.xml
@@ -68,19 +68,19 @@
To perform an action within a transaction, you must first create a transaction. Then you must call the method before each change or set of changes occurs, and the method after each change or set of changes occur. Finally, complete and close the transaction by calling the method.
> [!NOTE]
-> When making changes to property values, use the method of a , which calls the component change methods of the and creates a representing the change automatically.
+> When making changes to property values, use the method of a , which calls the component change methods of the and creates a representing the change automatically.
To perform a transaction, complete the following steps:
-1. Call to obtain a that can be used to control the transaction.
+1. Call to obtain a that can be used to control the transaction.
-2. Within a `try` block, for each action that you want to track with a , call the method, make the change or changes, then call the method to signal that the change or changes have been made.
+2. Within a `try` block, for each action that you want to track with a , call the method, make the change or changes, then call the method to signal that the change or changes have been made.
-3. To complete the transaction, call from within a `finally` block.
+3. To complete the transaction, call from within a `finally` block.
In C#, you can use the `using` statement rather than a `try/finally` block, such as in the following example.
-```
+```csharp
using (host.CreateTransaction() {
// Insert your code here.
}
@@ -88,8 +88,6 @@ using (host.CreateTransaction() {
To cancel and attempt to roll back a transaction before it has been committed, call the method. When the method is invoked, the actions tracked by the are reversed to attempt to roll back the changes. To undo actions that occurred as part of earlier transactions, you must use the undo command provided by the development environment.
-
-
## Examples
The following code example program demonstrates how to create a from a designer. To run this sample, compile the source code into a class library. You must add a reference to the System.Design assembly. In a new project, add a reference to the compiled DLL and add the component in the library to the **Toolbox**.
diff --git a/xml/System.ComponentModel/ICustomTypeDescriptor.xml b/xml/System.ComponentModel/ICustomTypeDescriptor.xml
index 12ca37610c0..80c7344332b 100644
--- a/xml/System.ComponentModel/ICustomTypeDescriptor.xml
+++ b/xml/System.ComponentModel/ICustomTypeDescriptor.xml
@@ -925,7 +925,7 @@
This method should return an object that you can use as follows:
-```
+```csharp
pd.GetValue(GetPropertyOwner(myPd));
```
diff --git a/xml/System.IdentityModel.Services.Configuration/FederationConfiguration.xml b/xml/System.IdentityModel.Services.Configuration/FederationConfiguration.xml
index c6eb496a810..5a7ca846374 100644
--- a/xml/System.IdentityModel.Services.Configuration/FederationConfiguration.xml
+++ b/xml/System.IdentityModel.Services.Configuration/FederationConfiguration.xml
@@ -101,7 +101,7 @@
The `system.identityModel` section must be specified in a `` element under the `` element in the configuration file or an exception is thrown.
-```
+```xml
@@ -147,7 +147,7 @@
Both the `system.identityModel` section and the `system.identityModel.services` must be specified in a `` elements under the `` element in the configuration file or an exception is thrown.
-```
+```xml
diff --git a/xml/System.IdentityModel.Services/WSFederationAuthenticationModule.xml b/xml/System.IdentityModel.Services/WSFederationAuthenticationModule.xml
index 7ebbc3f696a..4f1d0959429 100644
--- a/xml/System.IdentityModel.Services/WSFederationAuthenticationModule.xml
+++ b/xml/System.IdentityModel.Services/WSFederationAuthenticationModule.xml
@@ -86,7 +86,7 @@
To be used, the module must be added to the pipeline as in the following XML:
-```
+```xml
diff --git a/xml/System.Management.Instrumentation/ManagementCreateAttribute.xml b/xml/System.Management.Instrumentation/ManagementCreateAttribute.xml
index 12a91e30815..f57284593c4 100644
--- a/xml/System.Management.Instrumentation/ManagementCreateAttribute.xml
+++ b/xml/System.Management.Instrumentation/ManagementCreateAttribute.xml
@@ -32,14 +32,12 @@
The method parameters should have the same name and type as the parameters of the class binding constructor.
- Use of this attribute does not have any affect on registration of the WMI class in the repository. It is only used at runtime.
-
-
+ Use of this attribute does not have any affect on registration of the WMI class in the repository. It is only used at run time.
## Examples
The following example demonstrates how to use the ManagementCreate attribute.
-```
+```csharp
[ManagementEntity]
public class ProcessInstance
{
diff --git a/xml/System.Management.Instrumentation/ManagementEntityAttribute.xml b/xml/System.Management.Instrumentation/ManagementEntityAttribute.xml
index 5faddeed2c9..f8f6f29aa8f 100644
--- a/xml/System.Management.Instrumentation/ManagementEntityAttribute.xml
+++ b/xml/System.Management.Instrumentation/ManagementEntityAttribute.xml
@@ -23,26 +23,20 @@
The ManagementEntity attribute indicates that a class provides management information exposed through a WMI provider.
- Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.
+ Note: The WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. Use the MI APIs for all new development.
@@ -159,7 +153,7 @@
## Examples
In the following example, the Name parameter is used to set the name of the WMI class represented by the MortgageCalcWMIProvider class. It sets the name to MortgageCalculator. If the Name parameter is not used, the corresponding C# class name, MortgageCalcWMIProvider in this case, is used as the WMI class name.
-```
+```csharp
[ManagementEntity(Name = "MortgageCalculator")]
public class MortgageCalcWMIProvider
{
@@ -212,12 +206,12 @@ public class MortgageCalcWMIProvider
## Examples
The following code snippet demonstrates how to use the Singleton parameter to indicate that a C# class corresponds to a singleton WMI class.
-```
+```csharp
[ManagementEntity(Singleton=true)]
-public class SingletonSample
+public class SingletonSample { }
```
- For a complete, working example of a provider that implements a singleton class, see [How to: Create a Basic Decoupled Provider](https://msdn.microsoft.com/library/1dabd442-c1ff-40a1-bb0e-d7b3566c2300).
+ For a complete, working example of a provider that implements a singleton class, see [How to: Create a Basic Decoupled Provider](/previous-versions/bb885134(v=vs.90)).
]]>
diff --git a/xml/System.Management.Instrumentation/ManagementNameAttribute.xml b/xml/System.Management.Instrumentation/ManagementNameAttribute.xml
index 31655078879..9c1b7f15f95 100644
--- a/xml/System.Management.Instrumentation/ManagementNameAttribute.xml
+++ b/xml/System.Management.Instrumentation/ManagementNameAttribute.xml
@@ -35,7 +35,7 @@
## Examples
In the following example, the integer parameter remains i internally, but will be exposed as "The Value" to WMI clients.
-```
+```csharp
[ManagementTask]
static public int PrintValue([ManagementName("The Value")]int i)
{
diff --git a/xml/System.Management.Instrumentation/ManagementQualifierAttribute.xml b/xml/System.Management.Instrumentation/ManagementQualifierAttribute.xml
index 1c26834c82a..b450c05b70c 100644
--- a/xml/System.Management.Instrumentation/ManagementQualifierAttribute.xml
+++ b/xml/System.Management.Instrumentation/ManagementQualifierAttribute.xml
@@ -37,7 +37,7 @@
## Examples
The following example demonstrates using the ManagementQualifier attribute to indicate that a class implements a WMI association class. In this case, the qualifier has a flavor that specifies that the effect of the qualifier cannot be overridden in subclasses.
-```
+```csharp
[ManagementQualifier("Association", Flavor = ManagementQualifierFlavors.DisableOverride)]
public class AssociationSample
{
diff --git a/xml/System.Management.Instrumentation/ManagementQualifierFlavors.xml b/xml/System.Management.Instrumentation/ManagementQualifierFlavors.xml
index 66bd3f24760..bb808c43ff2 100644
--- a/xml/System.Management.Instrumentation/ManagementQualifierFlavors.xml
+++ b/xml/System.Management.Instrumentation/ManagementQualifierFlavors.xml
@@ -34,7 +34,7 @@
## Examples
The following example demonstrates how to use the DisableOverride ManagementQualifierFlavors enumeration. Here it is being applied to the Association qualifier.
-```
+```csharp
[ManagementQualifier("Association",
Flavor = ManagementQualifierFlavors.DisableOverride)]
public class AssociationSampleBase
diff --git a/xml/System.Management.Instrumentation/ManagementReferenceAttribute.xml b/xml/System.Management.Instrumentation/ManagementReferenceAttribute.xml
index a14148829ae..1f7b02c3d17 100644
--- a/xml/System.Management.Instrumentation/ManagementReferenceAttribute.xml
+++ b/xml/System.Management.Instrumentation/ManagementReferenceAttribute.xml
@@ -37,7 +37,7 @@
To compile the example, you will need to include references to both System.Management.Instrumentation and System.Configuration.Install. You must run installutil.exe against the resulting executable and ensure that the program is running in order to use the implemented WMI classes.
-```
+```csharp
using System;
using System.Collections;
using System.Management.Instrumentation;
diff --git a/xml/System.Management.Instrumentation/WmiConfigurationAttribute.xml b/xml/System.Management.Instrumentation/WmiConfigurationAttribute.xml
index b630cf121f5..3e0f888055f 100644
--- a/xml/System.Management.Instrumentation/WmiConfigurationAttribute.xml
+++ b/xml/System.Management.Instrumentation/WmiConfigurationAttribute.xml
@@ -41,7 +41,7 @@
## Examples
-```
+```csharp
// Specify that this assembly contains code that implements a WMI
// Provider. Use the assembly:WmiConfiguration attribute to define
// the WMI namespace, the hosting model, and the impersonation mode
@@ -129,7 +129,7 @@
## Examples
In the following example, the is used to indicate that the assembly it is contained in implements an in-process provider that runs under the NetworkService security context and is hosted in a instance of the Wmiprvse.exe process that also hosts any other in-process providers in the same hosting group that also run within the NetworkService security context.
-```
+```csharp
[assembly: WmiConfiguration("root\\NVPair", HostingModel = ManagementHostingModel.NetworkService), HostingGroup = "MyProviders"]
```
@@ -179,13 +179,13 @@
## Examples
In the following example, the is used to indicate that the assembly it is contained in implements a provider that is exposed through the root\NVPair namespace. Because the hosting model is not , it is an in-process provider. The value indicates that the in-process provider runs under the NetworkService security context.
-```
+```csharp
[assembly: WmiConfiguration("root\\NVPair", HostingModel = ManagementHostingModel.NetworkService)]
```
In the next example, the is used to indicate that the assembly it is contained in implements a provider that is exposed through the root\NVPair namespace. The value indicates that it is a decoupled provider.
-```
+```csharp
[assembly: WmiConfiguration("root\\NVPair", HostingModel = ManagementHostingModel.Decoupled)]
```
@@ -231,7 +231,7 @@
## Examples
The following example demonstrates how to use the IdentifyLevel parameter to indicate that the provider can impersonate its callers.
-```
+```csharp
[assembly: WmiConfiguration("root/MyProv", HostingModel = ManagementHostingModel.Decoupled, IdentifyLevel = true]
```
@@ -277,7 +277,7 @@
## Examples
The following example demonstrates how to use the NamespaceSecurity parameter to set the security descriptor on the root/SDTest namespace in which the provider implemented in this assembly exposes WMI classes.
-```
+```csharp
[assembly: WmiConfiguration("root/SDTest", HostingModel = ManagementHostingModel.Decoupled, IdentifyLevel = false, NamespaceSecurity = "O:BAG:BAD:(A;CI;0x60003;;;WD)")]
```
diff --git a/xml/System.ServiceModel.Channels/ReliableSessionBindingElement.xml b/xml/System.ServiceModel.Channels/ReliableSessionBindingElement.xml
index 4578e0558c2..b2cde27a420 100644
--- a/xml/System.ServiceModel.Channels/ReliableSessionBindingElement.xml
+++ b/xml/System.ServiceModel.Channels/ReliableSessionBindingElement.xml
@@ -67,7 +67,7 @@
## Examples
The can be added to any custom binding. This is done using the following configuration elements.
-```
+```xml
diff --git a/xml/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParameters.xml b/xml/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParameters.xml
index 66f9af62c73..a036291e0a4 100644
--- a/xml/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParameters.xml
+++ b/xml/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParameters.xml
@@ -779,7 +779,7 @@
The following configuration exhibits this behavior.
-```
+```xml
diff --git a/xml/System.ServiceModel/ServiceBehaviorAttribute.xml b/xml/System.ServiceModel/ServiceBehaviorAttribute.xml
index db8b4f1bee3..ebfad7be975 100644
--- a/xml/System.ServiceModel/ServiceBehaviorAttribute.xml
+++ b/xml/System.ServiceModel/ServiceBehaviorAttribute.xml
@@ -286,7 +286,6 @@ public void MyMethod()
this.ModifyNonLocalState;
return returnValue;
}
-
```
Using the Begin/End asynchronous call pattern for an outbound call when the is triggers an exception. Asynchronous outbound calls require an operation in which is , in which case you must handle synchronization issues.
@@ -296,7 +295,7 @@ public void MyMethod()
In addition, if the is set to and a reentrant call is blocked while waiting for the instance to be freed, the system detects the deadlock and throws an exception.
> [!NOTE]
-> A is thrown at runtime if is `true` when the property is set to .
+> A is thrown at run time if is `true` when the property is set to .
Note that you must explicitly set to `false` if there is an operation with set to true and you set to . Otherwise a validation exception is thrown because the default value of is `true`.