summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRahul Kumar <rahku@microsoft.com>2016-11-30 12:08:47 -0800
committerRahul Kumar <rahku@microsoft.com>2017-01-06 14:09:35 -0800
commite516211b2d3a3ae2dbd80f2c94b129910a9e280d (patch)
tree8d78175c6b2f4c107b6264075b34f491f9d09e44 /src
parentedc1320180a3d68a16855da8da82f01871bf3a1d (diff)
downloadcoreclr-e516211b2d3a3ae2dbd80f2c94b129910a9e280d.tar.gz
coreclr-e516211b2d3a3ae2dbd80f2c94b129910a9e280d.tar.bz2
coreclr-e516211b2d3a3ae2dbd80f2c94b129910a9e280d.zip
Hide types implemented in corefx
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/model.xml111
-rw-r--r--src/mscorlib/ref/mscorlib.cs193
-rw-r--r--src/vm/mscorlib.h2
-rw-r--r--src/vm/rexcep.h6
4 files changed, 16 insertions, 296 deletions
diff --git a/src/mscorlib/model.xml b/src/mscorlib/model.xml
index 7bb3ddefc6..437d5d6fe4 100644
--- a/src/mscorlib/model.xml
+++ b/src/mscorlib/model.xml
@@ -67,8 +67,6 @@
<Type Name="System.Activator">
<Member Name="CreateComInstanceFrom(System.String,System.String)" />
<Member Name="CreateComInstanceFrom(System.String,System.String,System.Byte[],System.Configuration.Assemblies.AssemblyHashAlgorithm)" />
- <Member Name="CreateInstance(System.AppDomain,System.String,System.String)" />
- <Member Name="CreateInstance(System.AppDomain,System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
<Member Name="CreateInstance(System.String,System.String)" />
<Member Name="CreateInstance(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
<Member Name="CreateInstance(System.String,System.String,System.Object[])" />
@@ -79,8 +77,6 @@
<Member Name="CreateInstance(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" />
<Member Name="CreateInstance(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
<Member Name="CreateInstance&lt;T&gt;" />
- <Member Name="CreateInstanceFrom(System.AppDomain,System.String,System.String)" />
- <Member Name="CreateInstanceFrom(System.AppDomain,System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
<Member Name="CreateInstanceFrom(System.String,System.String)" />
<Member Name="CreateInstanceFrom(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
<Member Name="CreateInstanceFrom(System.String,System.String,System.Object[])" />
@@ -89,8 +85,8 @@
<Member Status="ImplRoot" Name="System.Runtime.InteropServices._Activator.GetTypeInfoCount(System.UInt32@)" />
<Member Status="ImplRoot" Name="System.Runtime.InteropServices._Activator.Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" />
</Type>
- <Type Name="System.AppDomain">
- <Member Name="get_CurrentDomain" />
+ <Type Status="ImplRoot" Name="System.AppDomain">
+ <Member Status="ImplRoot" Name="get_CurrentDomain" />
<Member Status="ImplRoot" Name="get_MonitoringIsEnabled" />
<Member Status="ImplRoot" Name="set_MonitoringIsEnabled(System.Boolean)" />
<Member Status="ImplRoot" Name="get_MonitoringTotalProcessorTime" />
@@ -102,9 +98,9 @@
<Member Status="ImplRoot" MemberType="Property" Name="MonitoringTotalAllocatedMemorySize" />
<Member Status="ImplRoot" MemberType="Property" Name="MonitoringSurvivedMemorySize" />
<Member Status="ImplRoot" MemberType="Property" Name="MonitoringSurvivedProcessMemorySize" />
- <Member MemberType="Property" Name="IsFullyTrusted" />
- <Member Name="GetData(System.String)" />
- <Member Name="ToString" />
+ <Member Status="ImplRoot" MemberType="Property" Name="IsFullyTrusted" />
+ <Member Status="ImplRoot" Name="GetData(System.String)" />
+ <Member Status="ImplRoot" Name="ToString" />
<Member Status="ImplRoot" Name="SetupDomainSecurity(System.Security.Policy.Evidence,System.IntPtr,System.Boolean)" />
<Member Status="ImplRoot" Name="SetupDomainSecurity(System.AppDomainHandle,System.Runtime.CompilerServices.ObjectHandleOnStack,System.IntPtr,System.Boolean)" />
<Member Status="ImplRoot" MemberType="Event" Name="AssemblyResolve" />
@@ -127,20 +123,9 @@
<Member Status="ImplRoot" Name="Setup(System.Object)" />
<Member Status="ImplRoot" Name="SetupDomain(System.Boolean,System.String,System.String,System.String[],System.String[])" />
<Member Status="ImplRoot" Name="nCreateContext" />
- <Member Name="OnDesignerNamespaceResolveEvent(System.String)" Condition="FEATURE_COMINTEROP" />
- <Member MemberType="Property" Name="BaseDirectory" />
- <Member Name="get_BaseDirectory" />
- </Type>
- <Type Name="System.AppDomainManager">
- <Member Name="#ctor" />
- <Member Name="InitializeNewDomain(System.AppDomainSetup)" />
- <Member Name="CheckSecuritySettings(System.Security.SecurityState)" />
- </Type>
- <Type Name="System.AppDomainUnloadedException">
- <Member Name="#ctor" />
- <Member Name="#ctor(System.String)" />
- <Member Name="#ctor(System.String,System.Exception)" />
- <Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
+ <Member Status="ImplRoot" Name="OnDesignerNamespaceResolveEvent(System.String)" Condition="FEATURE_COMINTEROP" />
+ <Member Status="ImplRoot" MemberType="Property" Name="BaseDirectory" />
+ <Member Status="ImplRoot" Name="get_BaseDirectory" />
</Type>
<Type Name="System.AppContext">
<Member MemberType="Event" Name="FirstChanceException" />
@@ -167,23 +152,6 @@
<Member Name="#ctor(System.String,System.Exception)" />
<Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
</Type>
- <Type Name="System.ApplicationId">
- <Member Name="#ctor(System.Byte[],System.String,System.Version,System.String,System.String)" />
- <Member Name="Copy" />
- <Member Name="Equals(System.Object)" />
- <Member Name="get_Culture" />
- <Member Name="get_Name" />
- <Member Name="get_ProcessorArchitecture" />
- <Member Name="get_PublicKeyToken" />
- <Member Name="get_Version" />
- <Member Name="GetHashCode" />
- <Member Name="ToString" />
- <Member MemberType="Property" Name="Culture" />
- <Member MemberType="Property" Name="Name" />
- <Member MemberType="Property" Name="ProcessorArchitecture" />
- <Member MemberType="Property" Name="PublicKeyToken" />
- <Member MemberType="Property" Name="Version" />
- </Type>
<Type Status="ImplRoot" Name="System.Collections.ArrayList">
<Member Name="ReadOnly(System.Collections.IList)" />
</Type>
@@ -550,12 +518,6 @@
<Member Name="ToString(System.String)" />
<Member Name="ToString(System.String,System.IFormatProvider)" />
</Type>
- <Type Name="System.CannotUnloadAppDomainException">
- <Member Name="#ctor" />
- <Member Name="#ctor(System.String)" />
- <Member Name="#ctor(System.String,System.Exception)" />
- <Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
- </Type>
<Type Name="System.Char">
<Member MemberType="Field" Name="MaxValue" />
<Member MemberType="Field" Name="MinValue" />
@@ -1989,7 +1951,6 @@
<Type Name="System.Environment">
<Member Name="get_CurrentManagedThreadId" />
<Member Name="get_MachineName" />
- <Member Name="get_OSVersion" />
<Member Name="get_ProcessorCount" />
<Member Name="get_StackTrace" />
<Member Name="GetEnvironmentVariable(System.String)" />
@@ -1997,7 +1958,6 @@
<Member Name="GetCommandLineArgs" />
<Member Name="SetEnvironmentVariable(System.String,System.String)" />
<Member Name="ExpandEnvironmentVariables(System.String)" />
- <Member MemberType="Property" Name="OSVersion" />
<Member MemberType="Property" Name="ProcessorCount" />
<Member MemberType="Property" Name="CurrentManagedThreadId" />
<Member MemberType="Property" Name="HasShutdownStarted" />
@@ -3556,21 +3516,6 @@
<Member Name="get_Value"/>
<Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
</Type>
- <Type Name="System.LoaderOptimization">
- <Member MemberType="Field" Name="DisallowBindings" />
- <Member MemberType="Field" Name="DomainMask" />
- <Member MemberType="Field" Name="MultiDomain" />
- <Member MemberType="Field" Name="MultiDomainHost" />
- <Member MemberType="Field" Name="NotSpecified" />
- <Member MemberType="Field" Name="SingleDomain" />
- <Member MemberType="Field" Name="value__" />
- </Type>
- <Type Name="System.LoaderOptimizationAttribute">
- <Member Name="#ctor(System.Byte)" />
- <Member Name="#ctor(System.LoaderOptimization)" />
- <Member Name="get_Value" />
- <Member MemberType="Property" Name="Value" />
- </Type>
<Type Name="System.LocalDataStoreSlot">
<Member Status="ImplRoot" Name="Finalize" />
</Type>
@@ -3885,20 +3830,6 @@
<Member MemberType="Property" Name="Message" />
</Type>
<Type Status="ImplRoot" Name="System.OleAutBinder" Condition="FEATURE_COMINTEROP" />
- <Type Name="System.OperatingSystem">
- <Member Name="#ctor(System.PlatformID,System.Version)" />
- <Member Status="ImplRoot" Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
- <Member Name="Clone" />
- <Member Name="get_Platform" />
- <Member Name="get_Version" />
- <Member Name="get_ServicePack" />
- <Member Name="get_VersionString" />
- <Member Name="ToString" />
- <Member MemberType="Property" Name="Platform" />
- <Member MemberType="Property" Name="Version" />
- <Member MemberType="Property" Name="ServicePack" />
- <Member MemberType="Property" Name="VersionString" />
- </Type>
<Type Name="System.OutOfMemoryException">
<Member Name="#ctor" />
<Member Name="#ctor(System.String)" />
@@ -8182,7 +8113,6 @@
<Member Name="get_CurrentCulture" />
<Member Name="get_CurrentThread" />
<Member Name="get_CurrentUICulture" />
- <Member Name="GetDomain" />
<Member Name="get_ManagedThreadId" />
<Member Name="get_Name" />
<Member Name="set_Name(System.String)" />
@@ -9945,16 +9875,6 @@
<Member MemberType="Property" Name="Position" />
<Member MemberType="Property" Name="PositionPointer" />
</Type>
- <Type Name="System.Security.Permissions.SecurityAttribute">
- <Member Name="#ctor(System.Security.Permissions.SecurityAction)" />
- <Member Name="get_Action" />
- <Member Name="get_Unrestricted" />
- <Member Name="set_Action(System.Security.Permissions.SecurityAction)" />
- <Member Name="set_Unrestricted(System.Boolean)" />
- <Member Name="FindSecurityAttributeTypeHandle(System.String)"/>
- <Member MemberType="Property" Name="Action" />
- <Member MemberType="Property" Name="Unrestricted" />
- </Type>
<Type Status="ApiRoot" Name="System.Diagnostics.Contracts.Contract" >
<Member MemberType="Event" Name="ContractFailed" />
<Member Name="Assert(System.Boolean)" />
@@ -11082,22 +11002,7 @@
</Type>
<Type Status="ImplRoot" Name="System.Security.Permissions.PermissionState" />
- <Type Name="System.Security.Permissions.SecurityAction" />
<Type Status="ImplRoot" Name="System.Security.Permissions.SecurityPermission" />
- <Type Name="System.Security.Permissions.CodeAccessSecurityAttribute">
- <Member Name="#ctor(System.Security.Permissions.SecurityAction)" />
- </Type>
- <Type Name="System.Security.Permissions.SecurityPermissionAttribute">
- <Member Name="#ctor(System.Security.Permissions.SecurityAction)" />
- <Member MemberType="Property" Name="ControlAppDomain" />
- <Member MemberType="Property" Name="ControlDomainPolicy" />
- <Member MemberType="Property" Name="ControlEvidence" />
- <Member MemberType="Property" Name="ControlPolicy" />
- <Member MemberType="Property" Name="ControlThread" />
- <Member MemberType="Property" Name="Flags" />
- <Member MemberType="Property" Name="UnmanagedCode" />
- <Member MemberType="Property" Name="SkipVerification" />
- </Type>
<Type Status="ImplRoot" Name="System.Security.PermissionSet">
<Member MemberType="Field" Name="m_serializedPermissionSet" /> <!-- smosier: avoid changing layout of objects mirrored in EE for now -->
<Member MemberType="Field" Name="m_unrestrictedPermSet" /> <!-- smosier: avoid changing layout of objects mirrored in EE for now -->
diff --git a/src/mscorlib/ref/mscorlib.cs b/src/mscorlib/ref/mscorlib.cs
index da378777c9..d5a5e96909 100644
--- a/src/mscorlib/ref/mscorlib.cs
+++ b/src/mscorlib/ref/mscorlib.cs
@@ -115,9 +115,6 @@ namespace System
public static System.Runtime.Remoting.ObjectHandle CreateComInstanceFrom(string assemblyName, string typeName) { throw null; }
public static System.Runtime.Remoting.ObjectHandle CreateComInstanceFrom(string assemblyName, string typeName, byte[] hashValue, System.Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm) { throw null; }
[System.Security.SecurityCriticalAttribute]
- public static System.Runtime.Remoting.ObjectHandle CreateInstance(System.AppDomain domain, string assemblyName, string typeName) { throw null; }
- [System.Security.SecurityCriticalAttribute]
- public static System.Runtime.Remoting.ObjectHandle CreateInstance(System.AppDomain domain, string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
[System.Security.SecuritySafeCriticalAttribute]
public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName) { throw null; }
@@ -139,9 +136,6 @@ namespace System
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
public static T CreateInstance<T>() { throw null; }
[System.Security.SecurityCriticalAttribute]
- public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(System.AppDomain domain, string assemblyFile, string typeName) { throw null; }
- [System.Security.SecurityCriticalAttribute]
- public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(System.AppDomain domain, string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; }
public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName) { throw null; }
public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; }
public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object[] activationAttributes) { throw null; }
@@ -180,56 +174,6 @@ namespace System
public static event System.EventHandler<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs> FirstChanceException { add { } remove { } }
public static event System.EventHandler ProcessExit { add { } remove { } }
}
- [System.Runtime.InteropServices.ClassInterfaceAttribute((System.Runtime.InteropServices.ClassInterfaceType)(0))]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public sealed partial class AppDomain
- {
- internal AppDomain() { }
- public string BaseDirectory { [System.Security.SecurityCriticalAttribute]get { throw null; } }
- public static System.AppDomain CurrentDomain { get { throw null; } }
- public bool IsFullyTrusted { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
- [System.Security.SecurityCriticalAttribute]
- public object GetData(string name) { throw null; }
- [System.Security.SecuritySafeCriticalAttribute]
- public override string ToString() { throw null; }
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- [System.Security.SecurityCriticalAttribute]
- public partial class AppDomainManager
- {
- public AppDomainManager() { }
- public virtual bool CheckSecuritySettings(System.Security.SecurityState state) { throw null; }
- [System.Security.SecurityCriticalAttribute]
- public virtual void InitializeNewDomain(System.AppDomainSetup appDomainInfo) { }
- }
- [System.Runtime.InteropServices.ClassInterfaceAttribute((System.Runtime.InteropServices.ClassInterfaceType)(0))]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public sealed partial class AppDomainSetup
- {
- internal AppDomainSetup() { }
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public partial class AppDomainUnloadedException : System.SystemException
- {
- public AppDomainUnloadedException() { }
- public AppDomainUnloadedException(string message) { }
- public AppDomainUnloadedException(string message, System.Exception innerException) { }
- protected AppDomainUnloadedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public sealed partial class ApplicationId
- {
- public ApplicationId(byte[] publicKeyToken, string name, System.Version version, string processorArchitecture, string culture) { }
- public string Culture { get { throw null; } }
- public string Name { get { throw null; } }
- public string ProcessorArchitecture { get { throw null; } }
- public byte[] PublicKeyToken { get { throw null; } }
- public System.Version Version { get { throw null; } }
- public System.ApplicationId Copy() { throw null; }
- public override bool Equals(object o) { throw null; }
- public override int GetHashCode() { throw null; }
- public override string ToString() { throw null; }
- }
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class ApplicationException : System.Exception
{
@@ -731,14 +675,6 @@ namespace System
public static bool TryParse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Byte result) { result = default(byte); throw null; }
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public partial class CannotUnloadAppDomainException : System.SystemException
- {
- public CannotUnloadAppDomainException() { }
- public CannotUnloadAppDomainException(string message) { }
- public CannotUnloadAppDomainException(string message, System.Exception innerException) { }
- protected CannotUnloadAppDomainException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Char : System.IComparable, System.IComparable<char>, System.IConvertible, System.IEquatable<char>
{
@@ -1947,13 +1883,11 @@ namespace System
public static bool HasShutdownStarted { [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]get { throw null; } }
public static string MachineName { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
public static string NewLine { get { throw null; } }
- public static System.OperatingSystem OSVersion { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
public static int ProcessorCount { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
public static string StackTrace { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
public static int TickCount { [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]get { throw null; } }
public static System.Version Version { get { throw null; } }
[System.Security.SecuritySafeCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
public static void Exit(int exitCode) { }
[System.Security.SecuritySafeCriticalAttribute]
public static string ExpandEnvironmentVariables(string name) { throw null; }
@@ -2480,26 +2414,6 @@ namespace System
public override string ToString() { throw null; }
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public enum LoaderOptimization
- {
- [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")]
- DisallowBindings = 4,
- [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")]
- DomainMask = 3,
- MultiDomain = 2,
- MultiDomainHost = 3,
- NotSpecified = 0,
- SingleDomain = 1,
- }
- [System.AttributeUsageAttribute((System.AttributeTargets)(64))]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public sealed partial class LoaderOptimizationAttribute : System.Attribute
- {
- public LoaderOptimizationAttribute(byte value) { }
- public LoaderOptimizationAttribute(System.LoaderOptimization value) { }
- public System.LoaderOptimization Value { get { throw null; } }
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
public sealed partial class LocalDataStoreSlot
{
internal LocalDataStoreSlot() { }
@@ -2904,19 +2818,6 @@ namespace System
public string Message { get { throw null; } }
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public sealed partial class OperatingSystem : System.ICloneable, System.Runtime.Serialization.ISerializable
- {
- public OperatingSystem(System.PlatformID platform, System.Version version) { }
- public System.PlatformID Platform { get { throw null; } }
- public string ServicePack { get { throw null; } }
- public System.Version Version { get { throw null; } }
- public string VersionString { get { throw null; } }
- public object Clone() { throw null; }
- [System.Security.SecurityCriticalAttribute]
- public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public override string ToString() { throw null; }
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class OperationCanceledException : System.SystemException
{
public OperationCanceledException() { }
@@ -2951,17 +2852,6 @@ namespace System
public ParamArrayAttribute() { }
}
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public enum PlatformID
- {
- MacOSX = 6,
- Unix = 4,
- Win32NT = 2,
- Win32S = 0,
- Win32Windows = 1,
- WinCE = 3,
- Xbox = 5,
- }
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class PlatformNotSupportedException : System.NotSupportedException
{
public PlatformNotSupportedException() { }
@@ -7177,7 +7067,6 @@ namespace System.IO
public void Dispose() { }
protected virtual void Dispose(bool disposing) { }
[System.Security.SecuritySafeCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { }
[System.Security.SecurityCriticalAttribute]
public void Read<T>(long position, out T structure) where T : struct { structure = default(T); throw null; }
@@ -10487,10 +10376,8 @@ namespace System.Runtime.InteropServices
public sealed partial class BStrWrapper
{
[System.Security.SecuritySafeCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
public BStrWrapper(object value) { }
[System.Security.SecuritySafeCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
public BStrWrapper(string value) { }
public string WrappedObject { get { throw null; } }
}
@@ -10695,7 +10582,6 @@ namespace System.Runtime.InteropServices
public sealed partial class DispatchWrapper
{
[System.Security.SecuritySafeCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
public DispatchWrapper(object obj) { }
public object WrappedObject { get { throw null; } }
}
@@ -10736,7 +10622,6 @@ namespace System.Runtime.InteropServices
public sealed partial class ErrorWrapper
{
[System.Security.SecuritySafeCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
public ErrorWrapper(System.Exception e) { }
public ErrorWrapper(int errorCode) { }
public ErrorWrapper(object errorCode) { }
@@ -12405,80 +12290,6 @@ namespace System.Security
protected VerificationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}
-namespace System.Security.Permissions
-{
- [System.AttributeUsageAttribute((System.AttributeTargets)(109), AllowMultiple=true, Inherited=false)]
- [System.ObsoleteAttribute("CodeAccessSecurityAttribute is no longer accessible to application code.")]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public abstract partial class CodeAccessSecurityAttribute : System.Security.Permissions.SecurityAttribute
- {
- protected CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
- }
- [System.ObsoleteAttribute("SecurityAction is no longer accessible to application code.")]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public enum SecurityAction
- {
- Assert = 3,
- Demand = 2,
- [System.ObsoleteAttribute("Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
- Deny = 4,
- InheritanceDemand = 7,
- LinkDemand = 6,
- PermitOnly = 5,
- [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
- RequestMinimum = 8,
- [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
- RequestOptional = 9,
- [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
- RequestRefuse = 10,
- }
- [System.AttributeUsageAttribute((System.AttributeTargets)(109), AllowMultiple=true, Inherited=false)]
- [System.ObsoleteAttribute("SecurityAttribute is no longer accessible to application code.")]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public abstract partial class SecurityAttribute : System.Attribute
- {
- protected SecurityAttribute(System.Security.Permissions.SecurityAction action) { }
- public System.Security.Permissions.SecurityAction Action { get { throw null; } set { } }
- public bool Unrestricted { get { throw null; } set { } }
- }
- [System.AttributeUsageAttribute((System.AttributeTargets)(109), AllowMultiple=true, Inherited=false)]
- [System.ObsoleteAttribute("SecurityPermissionAttribute is no longer accessible to application code.")]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public sealed partial class SecurityPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
- {
- public SecurityPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
- public bool ControlAppDomain { get { throw null; } set { } }
- public bool ControlDomainPolicy { get { throw null; } set { } }
- public bool ControlEvidence { get { throw null; } set { } }
- public bool ControlPolicy { get { throw null; } set { } }
- public bool ControlThread { get { throw null; } set { } }
- public System.Security.Permissions.SecurityPermissionFlag Flags { get { throw null; } set { } }
- public bool SkipVerification { get { throw null; } set { } }
- public bool UnmanagedCode { get { throw null; } set { } }
- }
- [System.FlagsAttribute]
- [System.ObsoleteAttribute("SecurityPermissionFlag is no longer accessible to application code.")]
- [System.Runtime.InteropServices.ComVisibleAttribute(true)]
- public enum SecurityPermissionFlag
- {
- AllFlags = 16383,
- Assertion = 1,
- BindingRedirects = 8192,
- ControlAppDomain = 1024,
- ControlDomainPolicy = 256,
- ControlEvidence = 32,
- ControlPolicy = 64,
- ControlPrincipal = 512,
- ControlThread = 16,
- Execution = 8,
- Infrastructure = 4096,
- NoFlags = 0,
- RemotingConfiguration = 2048,
- SerializationFormatter = 128,
- SkipVerification = 4,
- UnmanagedCode = 2,
- }
-}
namespace System.Security.Principal
{
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
@@ -13535,7 +13346,6 @@ namespace System.Threading
public new string Name { get { throw null; } [System.Security.SecuritySafeCriticalAttribute]set { } }
~Thread() { }
[System.Security.SecuritySafeCriticalAttribute]
- public static System.AppDomain GetDomain() { throw null; }
[System.Runtime.InteropServices.ComVisibleAttribute(false)]
public override int GetHashCode() { throw null; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecuritySafeCriticalAttribute]
@@ -13582,7 +13392,6 @@ namespace System.Threading
public static partial class ThreadPool
{
[System.Security.SecurityCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
public static bool BindHandle(System.Runtime.InteropServices.SafeHandle osHandle) { throw null; }
[System.Security.SecuritySafeCriticalAttribute]
public static void GetMaxThreads(out int workerThreads, out int completionPortThreads) { workerThreads = default(int); completionPortThreads = default(int); }
@@ -13602,10 +13411,8 @@ namespace System.Threading
[System.Security.SecuritySafeCriticalAttribute]
public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
[System.Security.SecurityCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, ControlThread=true)]
public static bool SetMaxThreads(int workerThreads, int completionPortThreads) { throw null; }
[System.Security.SecurityCriticalAttribute]
- [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, ControlThread=true)]
public static bool SetMinThreads(int workerThreads, int completionPortThreads) { throw null; }
}
public enum ThreadPriority
diff --git a/src/vm/mscorlib.h b/src/vm/mscorlib.h
index cb958687a4..bd40a7d279 100644
--- a/src/vm/mscorlib.h
+++ b/src/vm/mscorlib.h
@@ -1400,8 +1400,10 @@ DEFINE_CLASS(SAFE_CSHANDLE, Threading, SafeCompressedStackHandle)
DEFINE_CLASS(SECURITY_ACTION, Permissions, SecurityAction)
DEFINE_CLASS(HOST_PROTECTION_RESOURCE, Permissions, HostProtectionResource)
+#ifdef FEATURE_CAS_POLICY
DEFINE_CLASS(SECURITY_ATTRIBUTE, Permissions, SecurityAttribute)
DEFINE_METHOD(SECURITY_ATTRIBUTE, FIND_SECURITY_ATTRIBUTE_TYPE_HANDLE, FindSecurityAttributeTypeHandle, SM_Str_RetIntPtr)
+#endif
#ifdef FEATURE_CAS_POLICY
DEFINE_CLASS(SECURITY_ELEMENT, Security, SecurityElement)
diff --git a/src/vm/rexcep.h b/src/vm/rexcep.h
index 1d1d9385f0..3ff4963996 100644
--- a/src/vm/rexcep.h
+++ b/src/vm/rexcep.h
@@ -142,7 +142,13 @@ DEFINE_EXCEPTION(g_SystemNS, BadImageFormatException, true,
META_E_BAD_SIGNATURE,
COR_E_LOADING_WINMD_REFERENCE_ASSEMBLY)
+#ifdef FEATURE_CORECLR
+// CannotUnloadAppDomainException is removed in CoreCLR
+#define kCannotUnloadAppDomainException kException
+#else
DEFINE_EXCEPTION(g_SystemNS, CannotUnloadAppDomainException, false, COR_E_CANNOTUNLOADAPPDOMAIN)
+#endif // FEATURE_CORECLR
+
DEFINE_EXCEPTION(g_CodeContractsNS, ContractException, false, COR_E_CODECONTRACTFAILED)
#ifdef FEATURE_REMOTING