Expose some types deriving from SafeHandle
authorKoundinya Veluri <kouvel@microsoft.com>
Fri, 19 Aug 2016 18:20:21 +0000 (11:20 -0700)
committerKoundinya Veluri <kouvel@microsoft.com>
Fri, 19 Aug 2016 18:34:10 +0000 (11:34 -0700)
- SafeHandleMinusOneIsInvalid
- SafeHandleZeroOrMinusOneIsInvalid

Part of dotnet/corefxdotnet/coreclr#10933

Commit migrated from https://github.com/dotnet/coreclr/commit/6830e52feeb2509b7a12902a1e6dcc03a3cc38ea

src/coreclr/src/mscorlib/model.xml
src/coreclr/src/mscorlib/ref/mscorlib.cs

index 6c3a2f4..6336cf4 100644 (file)
       <Member MemberType="Property" Name="IsClosed" />
       <Member MemberType="Property" Name="IsInvalid" />
     </Type>
+    <Type Name="Microsoft.Win32.SafeHandles.SafeHandleMinusOneIsInvalid">
+      <Member Name="#ctor" />
+      <Member Name="#ctor(System.Boolean)" />
+      <Member Name="get_IsInvalid" />
+    </Type>
+    <Type Name="Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid">
+      <Member Name="#ctor" />
+      <Member Name="#ctor(System.Boolean)" />
+      <Member Name="get_IsInvalid" />
+    </Type>
     <Type Name="Microsoft.Win32.SafeHandles.SafeWaitHandle">
       <Member Name="#ctor(System.IntPtr,System.Boolean)" />
       <Member Status="ApiRoot" Name="ReleaseHandle" />
index ae917bf..fbb0883 100644 (file)
@@ -19,9 +19,15 @@ namespace Internal.Runtime.Augments
 namespace Microsoft.Win32.SafeHandles
 {
     [System.Security.SecurityCriticalAttribute]
+    public abstract partial class SafeHandleMinusOneIsInvalid : System.Runtime.InteropServices.SafeHandle
+    {
+        protected SafeHandleMinusOneIsInvalid() { }
+        public override bool IsInvalid { [System.Security.SecurityCriticalAttribute]get { throw null; } }
+    }
+    [System.Security.SecurityCriticalAttribute]
     public abstract partial class SafeHandleZeroOrMinusOneIsInvalid : System.Runtime.InteropServices.SafeHandle
     {
-        internal SafeHandleZeroOrMinusOneIsInvalid() { }
+        protected SafeHandleZeroOrMinusOneIsInvalid() { }
         public override bool IsInvalid { [System.Security.SecurityCriticalAttribute]get { throw null; } }
     }
     [System.Security.SecurityCriticalAttribute]