Skip to content

Commit

Permalink
Annotate System.Diagnostics.Process.MaxWorkingSet/MinWorkingSet props…
Browse files Browse the repository at this point in the history
… as unsupported on iOS/tvOS (#52395)
  • Loading branch information
MaximLipnin authored May 10, 2021
1 parent dcb42e8 commit 835f7c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public Process() { }
public System.Diagnostics.ProcessModule? MainModule { get { throw null; } }
public System.IntPtr MainWindowHandle { get { throw null; } }
public string MainWindowTitle { get { throw null; } }
public System.IntPtr MaxWorkingSet { get { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] [System.Runtime.Versioning.SupportedOSPlatformAttribute("macos")] [System.Runtime.Versioning.SupportedOSPlatformAttribute("freebsd")] set { } }
public System.IntPtr MinWorkingSet { get { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] [System.Runtime.Versioning.SupportedOSPlatformAttribute("macos")] [System.Runtime.Versioning.SupportedOSPlatformAttribute("freebsd")] set { } }
public System.IntPtr MaxWorkingSet { [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios"), System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")] get { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("freebsd"), System.Runtime.Versioning.SupportedOSPlatformAttribute("macos"), System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] set { } }
public System.IntPtr MinWorkingSet { [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios"), System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")] get { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("freebsd"), System.Runtime.Versioning.SupportedOSPlatformAttribute("macos"), System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] set { } }
public System.Diagnostics.ProcessModuleCollection Modules { get { throw null; } }
[System.ObsoleteAttribute("This property has been deprecated because the type of the property can't represent all valid results. Please use System.Diagnostics.Process.NonpagedSystemMemorySize64 instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public int NonpagedSystemMemorySize { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ public string MachineName
/// <remarks>On macOS and FreeBSD, setting the value works only for the current process.</remarks>
public IntPtr MaxWorkingSet
{
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
get
{
EnsureWorkingSetLimits();
Expand All @@ -280,6 +282,8 @@ public IntPtr MaxWorkingSet
/// <remarks>On macOS and FreeBSD, setting the value works only for the current process.</remarks>
public IntPtr MinWorkingSet
{
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
get
{
EnsureWorkingSetLimits();
Expand Down

0 comments on commit 835f7c9

Please sign in to comment.