RegistryPermission.FromXml(SecurityElement) 方法

定义

从 XML 编码重新构造具有指定状态的权限。Reconstructs a permission with a specified state from an XML encoding.

public:
 override void FromXml(System::Security::SecurityElement ^ elem);
public:
 override void FromXml(System::Security::SecurityElement ^ esd);
public override void FromXml (System.Security.SecurityElement elem);
public override void FromXml (System.Security.SecurityElement esd);
override this.FromXml : System.Security.SecurityElement -> unit
override this.FromXml : System.Security.SecurityElement -> unit
Public Overrides Sub FromXml (elem As SecurityElement)
Public Overrides Sub FromXml (esd As SecurityElement)

参数

elemesd
SecurityElement

用于重新构造权限的 XML 编码。The XML encoding to use to reconstruct the permission.

例外

elem 参数为 nullThe elem parameter is null.

elem 参数不是有效的权限元素。The elem parameter is not a valid permission element.

- 或 --or- elem 参数的版本号无效。The elem parameter's version number is not valid.

适用于