Skip to content

Commit 71721d8

Browse files
committed
remove lost links
1 parent 1478660 commit 71721d8

12 files changed

Lines changed: 67 additions & 79 deletions

File tree

xml/System.Management.Instrumentation/WmiProviderInstallationException.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<Docs>
2424
<summary>Represents an exception to throw when WMI provider installation fails.
2525

26-
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 <see href="https://learn.microsoft.com/en-us/).aspx">MI APIs</see> should be used for all new development.</summary>
26+
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.</summary>
2727
<remarks>To be added.</remarks>
2828
</Docs>
2929
<Members>

xml/System.Net/WebRequest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@
13321332
13331333
## Remarks
13341334
1335-
This property allows an application to determine which <xref:System.Net.IWebRequestCreate> derived factory object was used to create the request. This object may be [System.Net.Browser.WebRequestCreator.BrowserHttp](https://learn.microsoft.com/en-us/)) or [System.Net.Browser.WebRequestCreator.ClientHttp](https://learn.microsoft.com/en-us/)), but it may also be a custom instance derived from <xref:System.Net.IWebRequestCreate>. This allows an application to determine whether the browser hosting Silverlight, the Silverlight client, or some custom object handles HTTP requests and responses for the <xref:System.Net.WebRequest> instance. The <xref:System.Net.WebRequest.RegisterPrefix*> method allows an application to configure which derived <xref:System.Net.WebRequest> type will be instantiated when making a request to a specific URI. <xref:System.Net.WebRequest> creators are typically registered to handle a specific protocol, such HTTP or HTTPS, but can be registered to handle a request to a specific server or path on a server. This is useful when more than one derived <xref:System.Net.WebRequest> type can process requests for the same protocol. The Microsoft Silverlight 3 and later runtime supports multiple HTTP handlers each having different capabilities. For example, a web service that uses Representational State Transfer (REST) might require the [System.Net.Browser.WebRequestCreator.ClientHttp](https://learn.microsoft.com/en-us/)) handler while a SOAP web service might be able to use the default [System.Net.Browser.WebRequestCreator.BrowserHttp](https://learn.microsoft.com/en-us/)) handler.
1335+
This property allows an application to determine which <xref:System.Net.IWebRequestCreate> derived factory object was used to create the request. This object may be System.Net.Browser.WebRequestCreator.BrowserHttp or System.Net.Browser.WebRequestCreator.ClientHttp, but it may also be a custom instance derived from <xref:System.Net.IWebRequestCreate>. This allows an application to determine whether the browser hosting Silverlight, the Silverlight client, or some custom object handles HTTP requests and responses for the <xref:System.Net.WebRequest> instance. The <xref:System.Net.WebRequest.RegisterPrefix*> method allows an application to configure which derived <xref:System.Net.WebRequest> type will be instantiated when making a request to a specific URI. <xref:System.Net.WebRequest> creators are typically registered to handle a specific protocol, such HTTP or HTTPS, but can be registered to handle a request to a specific server or path on a server. This is useful when more than one derived <xref:System.Net.WebRequest> type can process requests for the same protocol. The Microsoft Silverlight 3 and later runtime supports multiple HTTP handlers each having different capabilities. For example, a web service that uses Representational State Transfer (REST) might require the System.Net.Browser.WebRequestCreator.ClientHttp handler while a SOAP web service might be able to use the default System.Net.Browser.WebRequestCreator.BrowserHttp handler.
13361336
13371337
]]></format>
13381338
</remarks>

xml/System.Runtime.InteropServices/CoClassAttribute.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@
6666
<Docs>
6767
<summary>Specifies the class identifier of a coclass imported from a type library.</summary>
6868
<remarks>
69-
<format type="text/markdown"><![CDATA[
70-
71-
## Remarks
72-
You can apply this attribute to coclass interfaces, although the [Tlbimp.exe (Type Library Importer)](/dotnet/framework/tools/tlbimp-exe-type-library-importer) typically applies it for you when it imports a type library.
73-
74-
When Tlbimp.exe imports a coclass, it produces a managed class and an interface to represent the coclass. The coclass interface has the same interface identifier (IID) as the default interface of the original coclass. The imported coclass interface also retains the name of the coclass. Tlbimp.exe appends the original coclass name with "class" to identify the imported class.
75-
76-
You rarely apply this attribute. However, if you plan to write source code that produces metadata that closely simulates metadata produced by Tlbimp.exe, you should create a coclass interface for each coclass. Use the name of the original coclass to name the coclass interface and derive it from the default interface. In addition to the <xref:System.Runtime.InteropServices.CoClassAttribute>, you must also apply the <xref:System.Runtime.InteropServices.ComImportAttribute?displayProperty=nameWithType> and <xref:System.Runtime.InteropServices.GuidAttribute?displayProperty=nameWithType> attributes to the coclass interface. For additional information about how Tlbimp.exe imports interfaces and coclasses from a type library, see [Imported Type Conversion](https://learn.microsoft.com/en-us/)).
77-
69+
<format type="text/markdown"><![CDATA[
70+
71+
## Remarks
72+
You can apply this attribute to coclass interfaces, although the [Tlbimp.exe (Type Library Importer)](/dotnet/framework/tools/tlbimp-exe-type-library-importer) typically applies it for you when it imports a type library.
73+
74+
When Tlbimp.exe imports a coclass, it produces a managed class and an interface to represent the coclass. The coclass interface has the same interface identifier (IID) as the default interface of the original coclass. The imported coclass interface also retains the name of the coclass. Tlbimp.exe appends the original coclass name with "class" to identify the imported class.
75+
76+
You rarely apply this attribute. However, if you plan to write source code that produces metadata that closely simulates metadata produced by Tlbimp.exe, you should create a coclass interface for each coclass. Use the name of the original coclass to name the coclass interface and derive it from the default interface. In addition to the <xref:System.Runtime.InteropServices.CoClassAttribute>, you must also apply the <xref:System.Runtime.InteropServices.ComImportAttribute?displayProperty=nameWithType> and <xref:System.Runtime.InteropServices.GuidAttribute?displayProperty=nameWithType> attributes to the coclass interface.
77+
7878
]]></format>
7979
</remarks>
8080
<altmember cref="T:System.Runtime.InteropServices.ComImportAttribute" />

xml/System.Runtime.InteropServices/DispIdAttribute.xml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,20 @@
6262
<Docs>
6363
<summary>Specifies the COM dispatch identifier (DISPID) of a method, field, or property.</summary>
6464
<remarks>
65-
<format type="text/markdown"><![CDATA[
66-
67-
## Remarks
68-
You can apply this attribute to methods, fields, or properties.
69-
70-
This attribute contains the DISPID for the method, field, or property it describes. Unique DISPIDs are typically assigned by the common language runtime, but you can use this attribute to assign a specific DISPID to a method. When importing a type library, this attribute is applied to all methods with assigned DISPIDs. This ensures that any managed implementation of the same method retains the same DISPID if exposed to COM.
71-
72-
See [DISPID Constants](https://learn.microsoft.com/en-us/).aspx) for a list of commonly used DISPID values.
73-
74-
75-
76-
## Examples
77-
The following example demonstrates how explicit DISPIDs can be assigned to members of a class.
78-
65+
<format type="text/markdown"><![CDATA[
66+
67+
## Remarks
68+
You can apply this attribute to methods, fields, or properties.
69+
70+
This attribute contains the DISPID for the method, field, or property it describes. Unique DISPIDs are typically assigned by the common language runtime, but you can use this attribute to assign a specific DISPID to a method. When importing a type library, this attribute is applied to all methods with assigned DISPIDs. This ensures that any managed implementation of the same method retains the same DISPID if exposed to COM.
71+
72+
## Examples
73+
The following example demonstrates how explicit DISPIDs can be assigned to members of a class.
74+
7975
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_Classic/classic DispIdAttribute Example/CPP/source.cpp" id="Snippet1":::
8076
:::code language="csharp" source="~/snippets/csharp/System.Runtime.InteropServices/DispIdAttribute/Overview/source.cs" id="Snippet1":::
81-
:::code language="vb" source="~/snippets/visualbasic/System.Runtime.InteropServices/DispIdAttribute/Overview/source.vb" id="Snippet1":::
82-
77+
:::code language="vb" source="~/snippets/visualbasic/System.Runtime.InteropServices/DispIdAttribute/Overview/source.vb" id="Snippet1":::
78+
8379
]]></format>
8480
</remarks>
8581
</Docs>

xml/System.Runtime.InteropServices/InterfaceTypeAttribute.xml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,22 @@
6262
<Docs>
6363
<summary>Indicates whether a managed interface is dual, dispatch-only, or <see langword="IUnknown" /> -only when exposed to COM.</summary>
6464
<remarks>
65-
<format type="text/markdown"><![CDATA[
66-
67-
## Remarks
68-
You can apply this attribute to interfaces.
69-
70-
By default, the [Tlbexp.exe (Type Library Exporter)](/dotnet/framework/tools/tlbexp-exe-type-library-exporter) exposes a managed interface to COM as a dual interface, giving you the flexibility of late binding or the performance of early binding. The <xref:System.Runtime.InteropServices.ComInterfaceType> enumeration enables you to override the default behavior and specify late binding only or early binding only. For example, you can apply `InterfaceType (ComInterfaceType.InterfaceIsIDispatch)` to an interface to produce metadata to restrict callers to late binding only. Although interfaces that derive from the `IDispatch` interface are often dual, the `InterfaceIsIDispatch` enumeration member allows only late-bound calls to the interface methods. This attribute has no effect on the managed view of the interface. For additional information on how interfaces are exposed to COM, see [Exported Type Conversion](https://learn.microsoft.com/en-us/)).
71-
72-
The [Tlbimp.exe (Type Library Importer)](/dotnet/framework/tools/tlbimp-exe-type-library-importer) also applies this attribute to imported, nondual interfaces; it applies the appropriate enumeration member to indicate that the interface is dispatch-only or `IUnknown` -only.
73-
74-
75-
76-
## Examples
77-
The following example shows how `InterfaceTypeAttribute` controls how the interface is exposed to COM.
78-
65+
<format type="text/markdown"><![CDATA[
66+
67+
## Remarks
68+
You can apply this attribute to interfaces.
69+
70+
By default, the [Tlbexp.exe (Type Library Exporter)](/dotnet/framework/tools/tlbexp-exe-type-library-exporter) exposes a managed interface to COM as a dual interface, giving you the flexibility of late binding or the performance of early binding. The <xref:System.Runtime.InteropServices.ComInterfaceType> enumeration enables you to override the default behavior and specify late binding only or early binding only. For example, you can apply `InterfaceType (ComInterfaceType.InterfaceIsIDispatch)` to an interface to produce metadata to restrict callers to late binding only. Although interfaces that derive from the `IDispatch` interface are often dual, the `InterfaceIsIDispatch` enumeration member allows only late-bound calls to the interface methods. This attribute has no effect on the managed view of the interface.
71+
72+
The [Tlbimp.exe (Type Library Importer)](/dotnet/framework/tools/tlbimp-exe-type-library-importer) also applies this attribute to imported, nondual interfaces; it applies the appropriate enumeration member to indicate that the interface is dispatch-only or `IUnknown` -only.
73+
74+
## Examples
75+
The following example shows how `InterfaceTypeAttribute` controls how the interface is exposed to COM.
76+
7977
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_Classic/classic InterfaceTypeAttribute Example/CPP/source.cpp" id="Snippet1":::
8078
:::code language="csharp" source="~/snippets/csharp/System.Runtime.InteropServices/InterfaceTypeAttribute/Overview/source.cs" id="Snippet1":::
81-
:::code language="vb" source="~/snippets/visualbasic/System.Runtime.InteropServices/InterfaceTypeAttribute/Overview/source.vb" id="Snippet1":::
82-
79+
:::code language="vb" source="~/snippets/visualbasic/System.Runtime.InteropServices/InterfaceTypeAttribute/Overview/source.vb" id="Snippet1":::
80+
8381
]]></format>
8482
</remarks>
8583
<altmember cref="T:System.Runtime.InteropServices.ComInterfaceType" />
@@ -146,11 +144,11 @@
146144
<param name="interfaceType">Describes how the interface should be exposed to COM clients.</param>
147145
<summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.InterfaceTypeAttribute" /> class with the specified <see cref="T:System.Runtime.InteropServices.ComInterfaceType" /> enumeration member.</summary>
148146
<remarks>
149-
<format type="text/markdown"><![CDATA[
150-
151-
## Remarks
152-
This constructor takes an underlying 16-bit integer that represents each <xref:System.Runtime.InteropServices.ComInterfaceType> enumeration member. The [Tlbimp.exe (Type Library Importer)](/dotnet/framework/tools/tlbimp-exe-type-library-importer) uses this constructor.
153-
147+
<format type="text/markdown"><![CDATA[
148+
149+
## Remarks
150+
This constructor takes an underlying 16-bit integer that represents each <xref:System.Runtime.InteropServices.ComInterfaceType> enumeration member. The [Tlbimp.exe (Type Library Importer)](/dotnet/framework/tools/tlbimp-exe-type-library-importer) uses this constructor.
151+
154152
]]></format>
155153
</remarks>
156154
<related type="Article" href="/dotnet/framework/tools/tlbimp-exe-type-library-importer">Tlbimp.exe (Type Library Importer)</related>
@@ -201,11 +199,11 @@
201199
<param name="interfaceType">One of the <see cref="T:System.Runtime.InteropServices.ComInterfaceType" /> values that describes how the interface should be exposed to COM clients.</param>
202200
<summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.InterfaceTypeAttribute" /> class with the specified <see cref="T:System.Runtime.InteropServices.ComInterfaceType" /> enumeration member.</summary>
203201
<remarks>
204-
<format type="text/markdown"><![CDATA[
205-
206-
## Remarks
207-
For readable code that is less prone to error, always use this constructor.
208-
202+
<format type="text/markdown"><![CDATA[
203+
204+
## Remarks
205+
For readable code that is less prone to error, always use this constructor.
206+
209207
]]></format>
210208
</remarks>
211209
</Docs>

xml/System.Runtime.InteropServices/PrimaryInteropAssemblyAttribute.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
7676
To specify a primary interop assembly in managed source code, you must apply the <xref:System.Runtime.InteropServices.GuidAttribute?displayProperty=nameWithType> and <xref:System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute> to the assembly at design time. The <xref:System.Runtime.InteropServices.GuidAttribute> on the primary interop assembly identifies the LIBID of the type library and the <xref:System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute> identifies the version of the particular type library for which this assembly is the primary interop assembly. The <xref:System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute> can appear multiple times if the assembly is the primary interop assembly for multiple versions of the same type library.
7777
78-
When using the types defined in a type library, always reference the primary interop assembly for that type library, rather than reimporting or redefining the types themselves. For guidelines and procedures on how to produce or use primary interop assemblies, see [Primary Interop Assemblies](https://learn.microsoft.com/en-us/)). For a detailed description of the type library importing process, see [Type Library to Assembly Conversion Summary](https://learn.microsoft.com/en-us/)).
78+
When using the types defined in a type library, always reference the primary interop assembly for that type library, rather than reimporting or redefining the types themselves.
7979
8080
]]></format>
8181
</remarks>

xml/System.Text/Encoding.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4130,7 +4130,7 @@ In .NET 5 and later versions, the code page name `utf-7` is not supported.
41304130
41314131
To calculate the exact array size required by <xref:System.Text.Encoding.GetBytes*> to store the resulting bytes, you should use the <xref:System.Text.Encoding.GetByteCount*> method. To calculate the maximum array size, use the <xref:System.Text.Encoding.GetMaxByteCount*> method. The <xref:System.Text.Encoding.GetByteCount*> method generally allows allocation of less memory, while the <xref:System.Text.Encoding.GetMaxByteCount*> method generally executes faster.
41324132
4133-
<xref:System.Text.Encoding.GetMaxByteCount*> retrieves a worst-case number, including the worst case for the currently selected <xref:System.Text.EncoderFallback>. If a fallback is chosen with a potentially large string, <xref:System.Text.Encoding.GetMaxByteCount*> retrieves large values, particularly in cases where the worst case for the encoding involves switching modes for every character. For example, this can happen for ISO-2022-JP. For more information, see the blog post "[What's with Encoding.GetMaxByteCount() and Encoding.GetMaxCharCount()?](https://learn.microsoft.com/en-us/archive/blogs/shawnste/whats-with-encoding-getmaxbytecount-and-encoding-getmaxcharcount).
4133+
<xref:System.Text.Encoding.GetMaxByteCount*> retrieves a worst-case number, including the worst case for the currently selected <xref:System.Text.EncoderFallback>. If a fallback is chosen with a potentially large string, <xref:System.Text.Encoding.GetMaxByteCount*> retrieves large values, particularly in cases where the worst case for the encoding involves switching modes for every character. For example, this can happen for ISO-2022-JP. For more information, see the blog post "[What's with Encoding.GetMaxByteCount() and Encoding.GetMaxCharCount()?](https://learn.microsoft.com/archive/blogs/shawnste/whats-with-encoding-getmaxbytecount-and-encoding-getmaxcharcount).
41344134
41354135
In most cases, this method retrieves reasonable values for small strings. For large strings, you might have to choose between using very large buffers and catching errors in the rare case when a more reasonable buffer is too small. You might also want to consider a different approach using <xref:System.Text.Encoding.GetByteCount*> or <xref:System.Text.Encoder.Convert*?displayProperty=nameWithType>.
41364136

xml/System.Threading/Lock.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ It is recommended to use the <xref:System.Threading.Lock.EnterScope*> method wit
3232
3333
:::code language="csharp" source="~/snippets/csharp/System.Threading/Lock/Overview/UsagePatterns.cs" id="Snippet1":::
3434
35-
When using the C# `lock` keyword or similar to enter and exit a lock, the type of the expression must be precisely `System.Threading.Lock`. If the type of the expression is anything else, such as `Object` or a generic type like `T`, a different implementation that is not interchangeable can be used instead (such as <xref:System.Threading.Monitor>). For more information, see the relevant [compiler speclet](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-13.0/lock-object).
35+
When using the C# `lock` keyword or similar to enter and exit a lock, the type of the expression must be precisely `System.Threading.Lock`. If the type of the expression is anything else, such as `Object` or a generic type like `T`, a different implementation that is not interchangeable can be used instead (such as <xref:System.Threading.Monitor>). For more information, see the relevant [compiler speclet](https://learn.microsoft.com/dotnet/csharp/language-reference/proposals/csharp-13.0/lock-object).
3636
3737
<xref:System.Threading.Thread.Interrupt*> can interrupt threads that are waiting to enter a lock. On Windows STA threads, waits for locks allow message pumping that can run other code on the same thread during a wait. Some features of the waits can be overridden by a custom <xref:System.Threading.SynchronizationContext>.
3838

0 commit comments

Comments
 (0)