Skip to content

Commit 1193367

Browse files
committed
remove pcl remarks
1 parent 1478660 commit 1193367

8 files changed

Lines changed: 16 additions & 94 deletions

File tree

xml/System.Globalization/Calendar.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@
218218
219219
]]></format>
220220
</remarks>
221-
<block subset="none" type="usage">
222-
<para>In the Portable Class Library, the <see cref="T:System.Globalization.Calendar" /> class constructor is unavailable, and classes derived from <see cref="T:System.Globalization.Calendar" /> are not public. If you want a calendar of a specific type, such as a Gregorian calendar object, you have to retrieve it from the <see cref="P:System.Globalization.CultureInfo.Calendar" /> or <see cref="P:System.Globalization.DateTimeFormatInfo.Calendar" /> property, or from the <see cref="P:System.Globalization.CultureInfo.OptionalCalendars" /> property array.</para>
223221
</block>
224222
</Docs>
225223
</Member>

xml/System.IO/PathTooLongException.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,12 @@
6868
6969
## Remarks
7070
71-
> [!NOTE]
72-
> This exception is not included in [.NET for Windows Store apps](https://learn.microsoft.com/dotnet/api/system.io.pathtoolongexception?view=net-8.0) or the [Portable Class Library](/dotnet/standard/cross-platform/cross-platform-development-with-the-portable-class-library), but it is thrown by some members that are. To catch the exception in that case, write a `catch` statement that handles an <xref:System.IO.IOException> instead.
73-
74-
Starting with apps running under .NET Framework 4.6.2, .NET supports long paths in excess of 260 (or `MAX_PATH`) characters. The runtime throws a <xref:System.IO.PathTooLongException> under the following conditions:
71+
Starting with apps running under .NET Framework 4.6.2, .NET supports long paths in excess of 260 (or `MAX_PATH`) characters. The runtime throws a <xref:System.IO.PathTooLongException> under the following conditions:
7572
7673
- The operating system returns `COR_E_PATHTOOLONG` or its equivalent.
7774
- The length of the path exceeds <xref:System.Int16.MaxValue?displayProperty=nameWithType> (32,767) characters.
7875
79-
<xref:System.IO.PathTooLongException> uses the HRESULT `COR_E_PATHTOOLONG`, which has the value 0x800700CE.
76+
<xref:System.IO.PathTooLongException> uses the HRESULT `COR_E_PATHTOOLONG`, which has the value 0x800700CE.
8077
8178
]]></format>
8279
</remarks>

xml/System.Text.RegularExpressions/CaptureCollection.xml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,8 @@
188188
<format type="text/markdown"><![CDATA[
189189
190190
## Remarks
191-
Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.
192191
193-
> [!WARNING]
194-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.CaptureCollection.System%23Collections%23ICollection%23CopyTo*?displayProperty=nameWithType> method instead.
192+
Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.
195193
196194
]]></format>
197195
</remarks>
@@ -467,16 +465,7 @@ A collection that is read-only does not allow the addition or removal of element
467465
<summary>Gets a value that indicates whether access to the collection is synchronized (thread-safe).</summary>
468466
<value>
469467
<see langword="false" /> in all cases.</value>
470-
<remarks>
471-
<format type="text/markdown"><![CDATA[
472-
473-
## Remarks
474-
475-
> [!WARNING]
476-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.CaptureCollection.System%23Collections%23ICollection%23IsSynchronized?displayProperty=nameWithType> property instead.
477-
478-
]]></format>
479-
</remarks>
468+
<remarks>To be added.</remarks>
480469
<altmember cref="P:System.Text.RegularExpressions.CaptureCollection.SyncRoot" />
481470
</Docs>
482471
</Member>
@@ -590,16 +579,7 @@ A collection that is read-only does not allow the addition or removal of element
590579
<Docs>
591580
<summary>Gets an object that can be used to synchronize access to the collection.</summary>
592581
<value>An object that can be used to synchronize access to the collection.</value>
593-
<remarks>
594-
<format type="text/markdown"><![CDATA[
595-
596-
## Remarks
597-
598-
> [!WARNING]
599-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.CaptureCollection.System%23Collections%23ICollection%23SyncRoot?displayProperty=nameWithType> property instead.
600-
601-
]]></format>
602-
</remarks>
582+
<remarks>To be added.</remarks>
603583
<altmember cref="P:System.Text.RegularExpressions.CaptureCollection.IsSynchronized" />
604584
</Docs>
605585
</Member>

xml/System.Text.RegularExpressions/GroupCollection.xml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@
248248
## Remarks
249249
Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.
250250
251-
> [!WARNING]
252-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.GroupCollection.System%23Collections%23ICollection%23CopyTo*?displayProperty=nameWithType> method instead.
253-
254-
255-
256251
## Examples
257252
The following example extracts each word from a sentence and captures it in a capturing group, The <xref:System.Text.RegularExpressions.GroupCollection.CopyTo*> method is then used to copy the elements in each match's <xref:System.Text.RegularExpressions.GroupCollection> object to an array that contains the capturing groups from all matches. The individual captured words are then displayed to the console.
258253
@@ -546,16 +541,7 @@ A collection that is read-only does not allow the addition or removal of element
546541
<summary>Gets a value that indicates whether access to the <see cref="T:System.Text.RegularExpressions.GroupCollection" /> is synchronized (thread-safe).</summary>
547542
<value>
548543
<see langword="false" /> in all cases.</value>
549-
<remarks>
550-
<format type="text/markdown"><![CDATA[
551-
552-
## Remarks
553-
554-
> [!WARNING]
555-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.CaptureCollection.System%23Collections%23ICollection%23IsSynchronized?displayProperty=nameWithType> property instead.
556-
557-
]]></format>
558-
</remarks>
544+
<remarks>To be added.</remarks>
559545
<altmember cref="P:System.Text.RegularExpressions.GroupCollection.SyncRoot" />
560546
</Docs>
561547
</Member>
@@ -834,16 +820,7 @@ The order of the keys in the enumerable collection is unspecified, but the imple
834820
<Docs>
835821
<summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Text.RegularExpressions.GroupCollection" />.</summary>
836822
<value>A copy of the <see cref="T:System.Text.RegularExpressions.Match" /> object to synchronize.</value>
837-
<remarks>
838-
<format type="text/markdown"><![CDATA[
839-
840-
## Remarks
841-
842-
> [!WARNING]
843-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.GroupCollection.System%23Collections%23ICollection%23SyncRoot?displayProperty=nameWithType> property instead.
844-
845-
]]></format>
846-
</remarks>
823+
<remarks>To be added.</remarks>
847824
<altmember cref="P:System.Text.RegularExpressions.GroupCollection.IsSynchronized" />
848825
</Docs>
849826
</Member>

xml/System.Text.RegularExpressions/MatchCollection.xml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@
186186
## Remarks
187187
Because the collection is copied into the array starting at the given index, the destination array must be at least as large as the entire collection.
188188
189-
> [!WARNING]
190-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.CaptureCollection.System%23Collections%23ICollection%23CopyTo*?displayProperty=nameWithType> method instead.
191-
192189
Because the <xref:System.Text.RegularExpressions.MatchCollection> object is generally populated by using lazy evaluation, trying to copy the collection before it has been fully populated may throw a <xref:System.Text.RegularExpressions.RegexMatchTimeoutException> exception. This exception can be thrown if a time-out value for matching operations is in effect, and the attempt to find a single match exceeds that time-out interval.
193190
194191
]]></format>
@@ -480,16 +477,7 @@ A collection that is read-only does not allow the addition or removal of element
480477
<summary>Gets a value indicating whether access to the collection is synchronized (thread-safe).</summary>
481478
<value>
482479
<see langword="false" /> in all cases.</value>
483-
<remarks>
484-
<format type="text/markdown"><![CDATA[
485-
486-
## Remarks
487-
488-
> [!WARNING]
489-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.MatchCollection.System%23Collections%23ICollection%23IsSynchronized?displayProperty=nameWithType> property instead.
490-
491-
]]></format>
492-
</remarks>
480+
<remarks>To be added.</remarks>
493481
<altmember cref="P:System.Text.RegularExpressions.MatchCollection.SyncRoot" />
494482
</Docs>
495483
</Member>
@@ -619,16 +607,7 @@ huge
619607
<Docs>
620608
<summary>Gets an object that can be used to synchronize access to the collection.</summary>
621609
<value>An object that can be used to synchronize access to the collection. This property always returns the object itself.</value>
622-
<remarks>
623-
<format type="text/markdown"><![CDATA[
624-
625-
## Remarks
626-
627-
> [!WARNING]
628-
> This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the <xref:System.Text.RegularExpressions.MatchCollection.System%23Collections%23ICollection%23SyncRoot?displayProperty=nameWithType> property instead.
629-
630-
]]></format>
631-
</remarks>
610+
<remarks>To be added.</remarks>
632611
<altmember cref="P:System.Text.RegularExpressions.MatchCollection.IsSynchronized" />
633612
</Docs>
634613
</Member>

xml/System.Xml.Serialization/XmlAnyElementAttribute.xml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,22 @@
8080
8181
## Remarks
8282
83-
> [!TIP]
84-
> When working in a portable class library, such as in Silverlight, Windows Phone or Windows Store App project, and you are using the .NET Framework 4.0.3 and above, use <xref:System.Xml.Linq.XElement> or <xref:System.Xml.Linq.XNode> in place of <xref:System.Xml.XmlElement> and <xref:System.Xml.XmlNode>.
83+
Use the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to contain arbitrary data (as XML elements) that can be sent as part of an XML document, such as metadata sent as part of the document.
8584
86-
Use the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to contain arbitrary data (as XML elements) that can be sent as part of an XML document, such as metadata sent as part of the document.
85+
Apply the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a field that returns an array of <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects. Such a field can be used in two ways, depending on whether an object is being serialized or deserialized. When serialized, the object is generated as XML elements or nodes, even though they have no corresponding member (or members) in the object being serialized. If you specify a <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property value when applying the attribute, all <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects inserted into the array must have the same element name and default namespace, or an exception is thrown. If you set the <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> property value, you must set the <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property as well, and the <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects must also have the same name and namespace values. If no <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> value is specified, the <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects can have any element name.
8786
88-
Apply the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a field that returns an array of <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects. Such a field can be used in two ways, depending on whether an object is being serialized or deserialized. When serialized, the object is generated as XML elements or nodes, even though they have no corresponding member (or members) in the object being serialized. If you specify a <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property value when applying the attribute, all <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects inserted into the array must have the same element name and default namespace, or an exception is thrown. If you set the <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> property value, you must set the <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property as well, and the <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects must also have the same name and namespace values. If no <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> value is specified, the <xref:System.Xml.XmlElement> or <xref:System.Xml.XmlNode> objects can have any element name.
87+
When you call the <xref:System.Xml.Serialization.XmlSerializer.Deserialize*> method of the <xref:System.Xml.Serialization.XmlSerializer> class, all elements that do not have a corresponding member in the object being deserialized are collected in the array. After deserialization, iterate through the collection of <xref:System.Xml.XmlElement> items to process the data. If you specify a <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> value, the array contains only XML elements with that name. If you do not specify a <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> value, the array contains all elements that have no corresponding member in the class. If a class contains more than one field to which the attribute is applied, use the <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name>, or <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> and <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> properties to differentiate between the contents of the arrays. If such a class (with multiple fields) also contains one field that has no differentiating property values set (in other words, <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> and <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace>) during deserialization, this array contains any unknown XML elements that are not already contained in the other arrays. If a class contains more than one field that does not have a differentiating <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name>, or <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> and <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> value set, the behavior during deserialization is unspecified.
8988
90-
When you call the <xref:System.Xml.Serialization.XmlSerializer.Deserialize*> method of the <xref:System.Xml.Serialization.XmlSerializer> class, all elements that do not have a corresponding member in the object being deserialized are collected in the array. After deserialization, iterate through the collection of <xref:System.Xml.XmlElement> items to process the data. If you specify a <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> value, the array contains only XML elements with that name. If you do not specify a <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> value, the array contains all elements that have no corresponding member in the class. If a class contains more than one field to which the attribute is applied, use the <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name>, or <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> and <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> properties to differentiate between the contents of the arrays. If such a class (with multiple fields) also contains one field that has no differentiating property values set (in other words, <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> and <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace>) during deserialization, this array contains any unknown XML elements that are not already contained in the other arrays. If a class contains more than one field that does not have a differentiating <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name>, or <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> and <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> value set, the behavior during deserialization is unspecified.
89+
You can also apply the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a field that returns a single <xref:System.Xml.XmlElement> object. If you do so, you must use the properties and methods of the <xref:System.Xml.XmlElement> class to recursively iterate through the unknown elements.
9190
92-
You can also apply the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a field that returns a single <xref:System.Xml.XmlElement> object. If you do so, you must use the properties and methods of the <xref:System.Xml.XmlElement> class to recursively iterate through the unknown elements.
91+
You can apply multiple instances of the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a class member, but each instance must have a distinct <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property value. Or, if the same <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property is set for each instance, a distinct <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> property value must be set for each instance.
9392
94-
You can apply multiple instances of the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a class member, but each instance must have a distinct <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property value. Or, if the same <xref:System.Xml.Serialization.XmlAnyElementAttribute.Name> property is set for each instance, a distinct <xref:System.Xml.Serialization.XmlAnyElementAttribute.Namespace> property value must be set for each instance.
95-
96-
The <xref:System.Xml.Serialization.XmlSerializer.UnknownNode> and <xref:System.Xml.Serialization.XmlSerializer.UnknownAttribute> events of the <xref:System.Xml.Serialization.XmlSerializer> do not occur if you apply the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a member of a class.
93+
The <xref:System.Xml.Serialization.XmlSerializer.UnknownNode> and <xref:System.Xml.Serialization.XmlSerializer.UnknownAttribute> events of the <xref:System.Xml.Serialization.XmlSerializer> do not occur if you apply the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a member of a class.
9794
9895
> [!NOTE]
9996
> You can use the word `XmlAnyElement` in your code instead of the longer <xref:System.Xml.Serialization.XmlAnyElementAttribute>.
10097
101-
For more information about using attributes, see [Attributes](/dotnet/standard/attributes/).
102-
103-
98+
For more information about using attributes, see [Attributes](/dotnet/standard/attributes/).
10499
105100
## Examples
106101
The following example applies the <xref:System.Xml.Serialization.XmlAnyElementAttribute> to a field named `AllElements` that returns an array of <xref:System.Xml.XmlElement> objects.

xml/System.Xml/XmlReader.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9601,8 +9601,6 @@ An <see cref="T:System.Xml.XmlReader" /> asynchronous method was called without
96019601

96029602
This member is an explicit interface member implementation. It can be used only when the <xref:System.Xml.XmlReader> instance is cast to an <xref:System.IDisposable> interface.
96039603

9604-
This member may behave differently when it is used in a [Portable Class Library](/dotnet/standard/cross-platform/cross-platform-development-with-the-portable-class-library) project.
9605-
96069604
]]></format>
96079605
</remarks>
96089606
</Docs>

xml/System.Xml/XmlWriter.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,6 @@ An <see cref="T:System.Xml.XmlWriter" /> asynchronous method was called without
15001500

15011501
This member is an explicit interface member implementation. It can be used only when the <xref:System.Xml.XmlWriter> instance is cast to an <xref:System.IDisposable> interface.
15021502

1503-
This member might behave differently when it is used in a Portable Class Library project.
1504-
15051503
]]></format>
15061504
</remarks>
15071505
</Docs>

0 commit comments

Comments
 (0)