XamlLoadPermission 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Code Access Security is not supported or honored by the runtime.
声明权限,这些权限用于加载 XAML 读取器或编写器所使用的程序集中的类型。
public ref class XamlLoadPermission sealed : System::Security::CodeAccessPermission, System::Security::Permissions::IUnrestrictedPermission
public sealed class XamlLoadPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class XamlLoadPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
[System.Serializable]
public sealed class XamlLoadPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
type XamlLoadPermission = class
inherit CodeAccessPermission
interface IUnrestrictedPermission
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type XamlLoadPermission = class
inherit CodeAccessPermission
interface IUnrestrictedPermission
[<System.Serializable>]
type XamlLoadPermission = class
inherit CodeAccessPermission
interface IUnrestrictedPermission
Public NotInheritable Class XamlLoadPermission
Inherits CodeAccessPermission
Implements IUnrestrictedPermission
- 继承
- 属性
- 实现
注解
XamlLoadPermission 与内部类型是否允许在部分信任下加载等方案相关。
构造函数
XamlLoadPermission(IEnumerable<XamlAccessLevel>) |
使用一组可枚举的特定 XamlLoadPermission 值初始化 XamlAccessLevel 类的新实例。 |
XamlLoadPermission(PermissionState) |
使用现有权限初始化 XamlLoadPermission 类的新实例。 |
XamlLoadPermission(XamlAccessLevel) |
使用单一 XamlLoadPermission 值初始化 XamlAccessLevel 类的新实例。 |
属性
AllowedAccess |
获取此 XamlAccessLevel 表示的所有 XamlLoadPermission 值的列表。 |