Imported Upstream version 5.2.0.175

Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-06-07 13:16:24 +00:00
parent 4bdbaf4a88
commit 966bba02bb
8776 changed files with 346420 additions and 149650 deletions

View File

@@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if WIN_PLATFORM
#if WIN_PLATFORM || XAMMAC_4_5
using System;
using System.Text;

View File

@@ -55,6 +55,10 @@ namespace Microsoft.Win32
{
}
public void Close ()
{
}
public RegistryKey CreateSubKey (string subkey)
{
throw new PlatformNotSupportedException ();
@@ -70,6 +74,26 @@ namespace Microsoft.Win32
throw new PlatformNotSupportedException ();
}
public RegistryKey CreateSubKey (string subkey, RegistryKeyPermissionCheck permissionCheck)
{
throw new PlatformNotSupportedException ();
}
public RegistryKey CreateSubKey (string subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions)
{
throw new PlatformNotSupportedException ();
}
public RegistryKey CreateSubKey (string subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)
{
throw new PlatformNotSupportedException ();
}
public RegistryKey CreateSubKey (string subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions, RegistrySecurity registrySecurity)
{
throw new PlatformNotSupportedException ();
}
public void DeleteSubKey (string subkey)
{
}
@@ -128,6 +152,16 @@ namespace Microsoft.Win32
throw new PlatformNotSupportedException ();
}
public RegistrySecurity GetAccessControl ()
{
throw new PlatformNotSupportedException ();
}
public RegistrySecurity GetAccessControl (AccessControlSections includeSections)
{
throw new PlatformNotSupportedException ();
}
public RegistryValueKind GetValueKind (string name)
{
throw new PlatformNotSupportedException ();
@@ -158,6 +192,31 @@ namespace Microsoft.Win32
throw new PlatformNotSupportedException ();
}
public RegistryKey OpenSubKey (string name, RegistryKeyPermissionCheck permissionCheck)
{
throw new PlatformNotSupportedException ();
}
public RegistryKey OpenSubKey (string name, RegistryKeyPermissionCheck permissionCheck, RegistryRights rights)
{
throw new PlatformNotSupportedException ();
}
public static RegistryKey OpenRemoteBaseKey (RegistryHive hKey, string machineName)
{
throw new PlatformNotSupportedException ();
}
public static RegistryKey OpenRemoteBaseKey (RegistryHive hKey, string machineName, RegistryView view)
{
throw new PlatformNotSupportedException ();
}
public void SetAccessControl (RegistrySecurity registrySecurity)
{
throw new PlatformNotSupportedException ();
}
public void SetValue (string name, object value)
{
}
@@ -209,9 +268,11 @@ namespace Microsoft.Win32
static RegistryKey ()
{
#if !XAMMAC_4_5
if (Path.DirectorySeparatorChar == '\\')
RegistryApi = new Win32RegistryApi ();
else
#endif
RegistryApi = new UnixRegistryApi ();
}

View File

@@ -27,7 +27,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if WIN_PLATFORM
namespace Microsoft.Win32
{
public enum RegistryKeyPermissionCheck
@@ -37,4 +36,3 @@ namespace Microsoft.Win32
ReadWriteSubTree = 2,
}
}
#endif

View File

@@ -37,7 +37,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if WIN_PLATFORM
#if WIN_PLATFORM || XAMMAC_4_5
using System;
using System.Collections;

View File

@@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if WIN_PLATFORM
#if WIN_PLATFORM || XAMMAC_4_5
using System;
using System.Runtime.InteropServices;