未验证 提交 a49d50f9 编写于 作者: D dotnet-maestro[bot] 提交者: GitHub

[master] Update dependencies from dotnet/core-setup (#1000)

* Update dependencies from https://github.com/dotnet/core-setup build 20190618.02

- Microsoft.NETCore.App - 3.0.0-preview7-27818-02

Dependency coherency updates

- Microsoft.Win32.Registry - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.CodeDom - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Configuration.ConfigurationManager - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Diagnostics.EventLog - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.DirectoryServices - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Drawing.Common - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Reflection.Emit - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Reflection.MetadataLoadContext - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Security.AccessControl - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Xml - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Security.Permissions - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Security.Principal.Windows - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.Windows.Extensions - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.Platforms - 3.0.0-preview7.19318.1 (parent: Microsoft.NETCore.App)
- System.IO.Packaging - 4.6.0-preview7.19318.1 (parent: Microsoft.NETCore.App)

* added typeforwarding of moved types
上级 9a10af91
......@@ -7,61 +7,61 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.Win32.Registry" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="Microsoft.Win32.Registry" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.CodeDom" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.CodeDom" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Configuration.ConfigurationManager" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Configuration.ConfigurationManager" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Diagnostics.EventLog" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Diagnostics.EventLog" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.DirectoryServices" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.DirectoryServices" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Drawing.Common" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Drawing.Common" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Reflection.Emit" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Reflection.Emit" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Reflection.MetadataLoadContext" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Reflection.MetadataLoadContext" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Security.AccessControl" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Security.AccessControl" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Security.Cryptography.Xml" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Security.Cryptography.Xml" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Security.Permissions" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Security.Permissions" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Security.Principal.Windows" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Security.Principal.Windows" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="System.Windows.Extensions" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.Windows.Extensions" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App" Version="3.0.0-preview7-27817-03">
<Dependency Name="Microsoft.NETCore.App" Version="3.0.0-preview7-27818-02">
<Uri>https://github.com/dotnet/core-setup</Uri>
<Sha>499b95322ae3a8e29af2a2aacdfb332c4e25dfcf</Sha>
<Sha>00df5c6b304566a04d15dcdadfda710d73dd950b</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19318.2">
<Uri>https://github.com/dotnet/arcade</Uri>
......@@ -71,17 +71,17 @@
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>dc538a29793fd56618d0fa3186e2388d47d00c19</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.Platforms" Version="3.0.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="Microsoft.NETCore.Platforms" Version="3.0.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Wpf.DncEng" Version="4.8.0-preview7.19317.15">
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int</Uri>
<Sha>6a1b846653e9a595eed706f0dbf19d0f5e63570f</Sha>
</Dependency>
<Dependency Name="System.IO.Packaging" Version="4.6.0-preview7.19313.2" CoherentParentDependency="Microsoft.NETCore.App">
<Dependency Name="System.IO.Packaging" Version="4.6.0-preview7.19318.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>5955ee2583d4509d37ecf55243e9e3c9af128487</Sha>
<Sha>1fca079ddec2aabf56e256dab03e39b31b5036c7</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.Runtime.CoreCLR" Version="3.0.0-preview7.19313.1" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/coreclr</Uri>
......
......@@ -4,7 +4,7 @@
<VersionPrefix>4.8.0</VersionPrefix>
<PreReleaseVersionLabel>preview7</PreReleaseVersionLabel>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<SystemIOPackagingVersion>4.6.0-preview7.19313.2</SystemIOPackagingVersion>
<SystemIOPackagingVersion>4.6.0-preview7.19318.1</SystemIOPackagingVersion>
</PropertyGroup>
<!-- NuGet Package Versions -->
<PropertyGroup>
......@@ -18,25 +18,25 @@
</PropertyGroup>
<!-- Packages that come from https://github.com/dotnet/core-setup -->
<PropertyGroup>
<MicrosoftNETCoreAppVersion>3.0.0-preview7-27817-03</MicrosoftNETCoreAppVersion>
<MicrosoftNETCorePlatformsVersion>3.0.0-preview7.19313.2</MicrosoftNETCorePlatformsVersion>
<SystemDrawingCommonVersion>4.6.0-preview7.19313.2</SystemDrawingCommonVersion>
<SystemDirectoryServicesVersion>4.6.0-preview7.19313.2</SystemDirectoryServicesVersion>
<SystemReflectionMetadataLoadContextVersion>4.6.0-preview7.19313.2</SystemReflectionMetadataLoadContextVersion>
<MicrosoftNETCoreAppVersion>3.0.0-preview7-27818-02</MicrosoftNETCoreAppVersion>
<MicrosoftNETCorePlatformsVersion>3.0.0-preview7.19318.1</MicrosoftNETCorePlatformsVersion>
<SystemDrawingCommonVersion>4.6.0-preview7.19318.1</SystemDrawingCommonVersion>
<SystemDirectoryServicesVersion>4.6.0-preview7.19318.1</SystemDirectoryServicesVersion>
<SystemReflectionMetadataLoadContextVersion>4.6.0-preview7.19318.1</SystemReflectionMetadataLoadContextVersion>
</PropertyGroup>
<!-- Packages that come from https://github.com/dotnet/corefx via core-setup coherency parent dependency -->
<PropertyGroup>
<MicrosoftWin32RegistryPackageVersion>4.6.0-preview7.19313.2</MicrosoftWin32RegistryPackageVersion>
<SystemCodeDomPackageVersion>4.6.0-preview7.19313.2</SystemCodeDomPackageVersion>
<SystemConfigurationConfigurationManagerPackageVersion>4.6.0-preview7.19313.2</SystemConfigurationConfigurationManagerPackageVersion>
<SystemDiagnosticsEventLogPackageVersion>4.6.0-preview7.19313.2</SystemDiagnosticsEventLogPackageVersion>
<SystemReflectionEmitPackageVersion>4.6.0-preview7.19313.2</SystemReflectionEmitPackageVersion>
<MicrosoftWin32RegistryPackageVersion>4.6.0-preview7.19318.1</MicrosoftWin32RegistryPackageVersion>
<SystemCodeDomPackageVersion>4.6.0-preview7.19318.1</SystemCodeDomPackageVersion>
<SystemConfigurationConfigurationManagerPackageVersion>4.6.0-preview7.19318.1</SystemConfigurationConfigurationManagerPackageVersion>
<SystemDiagnosticsEventLogPackageVersion>4.6.0-preview7.19318.1</SystemDiagnosticsEventLogPackageVersion>
<SystemReflectionEmitPackageVersion>4.6.0-preview7.19318.1</SystemReflectionEmitPackageVersion>
<SystemReflectionTypeExtensionsPackageVersion>4.6.0-preview4.19176.11</SystemReflectionTypeExtensionsPackageVersion>
<SystemSecurityAccessControlPackageVersion>4.6.0-preview7.19313.2</SystemSecurityAccessControlPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>4.6.0-preview7.19313.2</SystemSecurityCryptographyXmlPackageVersion>
<SystemSecurityPermissionsPackageVersion>4.6.0-preview7.19313.2</SystemSecurityPermissionsPackageVersion>
<SystemSecurityPrincipalWindowsPackageVersion>4.6.0-preview7.19313.2</SystemSecurityPrincipalWindowsPackageVersion>
<SystemWindowsExtensionsPackageVersion>4.6.0-preview7.19313.2</SystemWindowsExtensionsPackageVersion>
<SystemSecurityAccessControlPackageVersion>4.6.0-preview7.19318.1</SystemSecurityAccessControlPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>4.6.0-preview7.19318.1</SystemSecurityCryptographyXmlPackageVersion>
<SystemSecurityPermissionsPackageVersion>4.6.0-preview7.19318.1</SystemSecurityPermissionsPackageVersion>
<SystemSecurityPrincipalWindowsPackageVersion>4.6.0-preview7.19318.1</SystemSecurityPrincipalWindowsPackageVersion>
<SystemWindowsExtensionsPackageVersion>4.6.0-preview7.19318.1</SystemWindowsExtensionsPackageVersion>
</PropertyGroup>
<!-- Packages that come from https://github.com/dotnet/arcade -->
<PropertyGroup>
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Reflection;
using System.Security;
namespace System.Xaml.Permissions
{
[Serializable]
public class XamlAccessLevel
{
private XamlAccessLevel(string assemblyName, string typeName)
{
AssemblyNameString = assemblyName;
PrivateAccessToTypeName = typeName;
}
public static XamlAccessLevel AssemblyAccessTo(Assembly assembly)
{
return new XamlAccessLevel(assembly.FullName, null);
}
public static XamlAccessLevel AssemblyAccessTo(AssemblyName assemblyName)
{
return new XamlAccessLevel(assemblyName.FullName, null);
}
public static XamlAccessLevel PrivateAccessTo(Type type)
{
return new XamlAccessLevel(type.Assembly.FullName, type.FullName);
}
public static XamlAccessLevel PrivateAccessTo(string assemblyQualifiedTypeName)
{
int nameBoundary = assemblyQualifiedTypeName.IndexOf(',');
string typeName = assemblyQualifiedTypeName.Substring(0, nameBoundary).Trim();
string assemblyFullName = assemblyQualifiedTypeName.Substring(nameBoundary + 1).Trim();
AssemblyName assemblyName = new AssemblyName(assemblyFullName);
return new XamlAccessLevel(assemblyName.FullName, typeName);
}
public AssemblyName AssemblyAccessToAssemblyName
{
get { return new AssemblyName(AssemblyNameString); }
}
public string PrivateAccessToTypeName { get; private set; }
internal string AssemblyNameString { get; private set; }
}
}
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Permissions;
namespace System.Xaml.Permissions
{
[Serializable]
public sealed class XamlLoadPermission : CodeAccessPermission, IUnrestrictedPermission
{
public XamlLoadPermission(PermissionState state) { }
public XamlLoadPermission(XamlAccessLevel allowedAccess) { }
public XamlLoadPermission(IEnumerable<XamlAccessLevel> allowedAccess) { }
[ComVisible(false)]
public override bool Equals(object obj) { return false; }
[ComVisible(false)]
public override int GetHashCode() { return base.GetHashCode(); }
public IList<XamlAccessLevel> AllowedAccess {get; private set;} = new ReadOnlyCollection<XamlAccessLevel>(Array.Empty<XamlAccessLevel>());
public override IPermission Copy() { return new XamlLoadPermission(PermissionState.Unrestricted); }
public override void FromXml(SecurityElement elem) { }
public bool Includes(XamlAccessLevel requestedAccess) { return true; }
public override IPermission Intersect(IPermission target) { return new XamlLoadPermission(PermissionState.Unrestricted); }
public override bool IsSubsetOf(IPermission target) { return true; }
public override SecurityElement ToXml() { return default(SecurityElement); }
public override IPermission Union(IPermission other) { return new XamlLoadPermission(PermissionState.Unrestricted); }
public bool IsUnrestricted() { return true; }
}
}
......@@ -13,4 +13,7 @@
[assembly:Dependency("System,", LoadHint.Always)]
[assembly:Dependency("System.Xml,", LoadHint.Sometimes)]
[assembly: TypeForwardedTo(typeof(System.Xaml.Permissions.XamlAccessLevel))]
[assembly: TypeForwardedTo(typeof(System.Xaml.Permissions.XamlLoadPermission))]
[assembly:XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")]
......@@ -86,6 +86,15 @@
[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipSelector))]
[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipSelectorType))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.MediaPermissionAudio))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.MediaPermissionVideo))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.MediaPermissionImage))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.MediaPermission))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.MediaPermissionAttribute))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.WebBrowserPermissionLevel))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.WebBrowserPermission))]
[assembly: TypeForwardedTo(typeof(System.Security.Permissions.WebBrowserPermissionAttribute))]
// XAML namespace definitions
[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")]
[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")]
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Security.Permissions
{
public enum MediaPermissionAudio
{
NoAudio,
SiteOfOriginAudio,
SafeAudio,
AllAudio
}
public enum MediaPermissionVideo
{
NoVideo,
SiteOfOriginVideo,
SafeVideo,
AllVideo,
}
public enum MediaPermissionImage
{
NoImage,
SiteOfOriginImage,
SafeImage,
AllImage,
}
[Serializable()]
sealed public class MediaPermission : CodeAccessPermission, IUnrestrictedPermission
{
public MediaPermission() { }
public MediaPermission(PermissionState state) { }
public MediaPermission(MediaPermissionAudio permissionAudio) { }
public MediaPermission(MediaPermissionVideo permissionVideo) { }
public MediaPermission(MediaPermissionImage permissionImage) { }
public MediaPermission(MediaPermissionAudio permissionAudio,
MediaPermissionVideo permissionVideo,
MediaPermissionImage permissionImage)
{ }
public bool IsUnrestricted() { return true; }
public override bool IsSubsetOf(IPermission target) { return true; }
public override IPermission Intersect(IPermission target) { return new MediaPermission(); }
public override IPermission Union(IPermission target) { return new MediaPermission(); }
public override IPermission Copy() { return new MediaPermission(); }
public override SecurityElement ToXml() { return default(SecurityElement); }
public override void FromXml(SecurityElement securityElement) { }
public MediaPermissionAudio Audio { get { return MediaPermissionAudio.AllAudio; } }
public MediaPermissionVideo Video { get { return MediaPermissionVideo.AllVideo; } }
public MediaPermissionImage Image { get { return MediaPermissionImage.AllImage; } }
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
sealed public class MediaPermissionAttribute : CodeAccessSecurityAttribute
{
public MediaPermissionAttribute(SecurityAction action) : base(action) { }
public override IPermission CreatePermission() { return new MediaPermission(); }
public MediaPermissionAudio Audio { get { return MediaPermissionAudio.AllAudio; } set { } }
public MediaPermissionVideo Video { get { return MediaPermissionVideo.AllVideo; } set { } }
public MediaPermissionImage Image { get { return MediaPermissionImage.AllImage; } set { } }
}
}
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Security.Permissions
{
public enum WebBrowserPermissionLevel
{
None,
Safe,
Unrestricted
}
[Serializable()]
sealed public class WebBrowserPermission : CodeAccessPermission, IUnrestrictedPermission
{
public WebBrowserPermission() { }
public WebBrowserPermission(PermissionState state) { }
public WebBrowserPermission(WebBrowserPermissionLevel webBrowserPermissionLevel) { }
public bool IsUnrestricted() { return true; }
public override bool IsSubsetOf(IPermission target) { return true; }
public override IPermission Intersect(IPermission target) { return new WebBrowserPermission(); }
public override IPermission Union(IPermission target) { return new WebBrowserPermission(); }
public override IPermission Copy() { return new WebBrowserPermission(); }
public override SecurityElement ToXml() { return default(SecurityElement); }
public override void FromXml(SecurityElement securityElement) { }
public WebBrowserPermissionLevel Level { get { return WebBrowserPermissionLevel.Unrestricted; } set { } }
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Assembly, AllowMultiple = true, Inherited = false )]
sealed public class WebBrowserPermissionAttribute : CodeAccessSecurityAttribute
{
public WebBrowserPermissionAttribute(SecurityAction action) : base(action) { }
public override IPermission CreatePermission() { return new WebBrowserPermission(); }
public WebBrowserPermissionLevel Level { get { return WebBrowserPermissionLevel.Unrestricted; } set { } }
}
}
......@@ -194,8 +194,6 @@
<Compile Include="System\IO\Packaging\RightsManagementInformation.cs" />
<Compile Include="System\IO\Packaging\PackageDigitalSignature.cs" />
<Compile Include="System\IO\Packaging\PackageDigitalSignatureManager.cs" />
<Compile Include="System\Security\Permissions\WebBrowserPermission.cs" />
<Compile Include="System\Security\Permissions\MediaPermission.cs" />
<Compile Include="System\Windows\AccessibilitySwitches.cs" />
<Compile Include="System\Windows\AttachedPropertyBrowsableAttribute.cs" />
<Compile Include="System\Windows\AttachedPropertyBrowsableForTypeAttribute.cs" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册