Skip to content

Commit 75dc20e

Browse files
authored
Remark on obsolete APIs (#4980)
1 parent 10c7677 commit 75dc20e

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

xml/System/MarshalByRefObject.xml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,16 @@
214214
<remarks>
215215
<format type="text/markdown"><![CDATA[
216216
217-
## Remarks
218-
For more information about lifetime services, see the <xref:System.Runtime.Remoting.Lifetime.LifetimeServices> class.
217+
## Remarks
218+
219+
This method is marked obsolete starting in .NET 5.0.
220+
221+
For more information about lifetime services, see the <xref:System.Runtime.Remoting.Lifetime.LifetimeServices> class.
219222
220223
]]></format>
221224
</remarks>
222225
<exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission.</exception>
226+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+ only: In all cases.</exception>
223227
</Docs>
224228
</Member>
225229
<Member MemberName="InitializeLifetimeService">
@@ -265,11 +269,12 @@
265269
<remarks>
266270
<format type="text/markdown"><![CDATA[
267271
268-
## Remarks
269-
For more information about lifetime services, see the <xref:System.Runtime.Remoting.Lifetime.LifetimeServices> class.
270-
271-
272-
272+
## Remarks
273+
274+
This method is marked obsolete starting in .NET 5.0.
275+
276+
For more information about lifetime services, see the <xref:System.Runtime.Remoting.Lifetime.LifetimeServices> class.
277+
273278
## Examples
274279
The following code example demonstrates creating a lease.
275280
@@ -280,6 +285,7 @@
280285
]]></format>
281286
</remarks>
282287
<exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission.</exception>
288+
<exception cref="T:System.PlatformNotSupportedException">.NET Core and .NET 5+ only: In all cases.</exception>
283289
</Docs>
284290
</Member>
285291
<MemberGroup MemberName="MemberwiseClone">

0 commit comments

Comments
 (0)