UnionCodeGroup 类

定义

注意

This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

注意

This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.

注意

Code Access Security is not supported or honored by the runtime.

注意

This type 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.

表示一个代码组,该代码组的策略声明是当前代码组的策略声明和所有其匹配的子代码组策略声明的联合。 此类不能被继承。

public ref class UnionCodeGroup sealed : System::Security::Policy::CodeGroup
[System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class UnionCodeGroup : System.Security.Policy.CodeGroup
[System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class UnionCodeGroup : System.Security.Policy.CodeGroup
[System.Obsolete("Code Access Security is not supported or honored by the runtime.")]
public sealed class UnionCodeGroup : System.Security.Policy.CodeGroup
[System.Serializable]
public sealed class UnionCodeGroup : System.Security.Policy.CodeGroup
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class UnionCodeGroup : System.Security.Policy.CodeGroup
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Obsolete("This type 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.")]
public sealed class UnionCodeGroup : System.Security.Policy.CodeGroup
[<System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type UnionCodeGroup = class
    inherit CodeGroup
[<System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type UnionCodeGroup = class
    inherit CodeGroup
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.")>]
type UnionCodeGroup = class
    inherit CodeGroup
[<System.Serializable>]
type UnionCodeGroup = class
    inherit CodeGroup
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type UnionCodeGroup = class
    inherit CodeGroup
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Obsolete("This type 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.")>]
type UnionCodeGroup = class
    inherit CodeGroup
Public NotInheritable Class UnionCodeGroup
Inherits CodeGroup
继承
UnionCodeGroup
属性

注解

注意

代码访问安全性 (CAS) 已在所有版本的 .NET Framework 和 .NET 中弃用。 如果使用与 CAS 相关的 API,最新版本的 .NET 不会遵循 CAS 注释,并会生成错误。 开发人员应寻求使用替代方法来完成安全任务。

代码组是代码访问安全策略的构建基块。 每个策略级别由一个根代码组组成,这些代码组可以具有子代码组 (等) ,形成一个树。 每个代码组都有一个成员资格条件,该条件根据该程序集的证据确定给定程序集是否属于该程序集。 只有成员资格条件与给定程序集及其子代码组匹配的代码组才应用策略。

UnionCodeGroup 是最常见的代码组类型;所有匹配子代码组的策略语句 (,并且扩展其子代码组) 与匹配父代码组的权限集组合在一起。 因此,如果其成员资格条件匹配,则此代码组将形成其策略语句与其所有子代码组(也与证据匹配)的联合。

UnionCodeGroup 代码组是由 CASPOL 实用工具创建的代码组, (请参阅 Caspol.exe (代码访问安全策略工具) ) 。

构造函数

UnionCodeGroup(IMembershipCondition, PolicyStatement)
已过时.
已过时.
已过时.
已过时.

初始化 UnionCodeGroup 类的新实例。

属性

AttributeString
已过时.
已过时.
已过时.
已过时.

获取代码组策略声明的特性的字符串表示形式。

(继承自 CodeGroup)
Children
已过时.
已过时.
已过时.
已过时.

获取或设置代码组的子代码组的排序列表。

(继承自 CodeGroup)
Description
已过时.
已过时.
已过时.
已过时.

获取或设置代码组的说明。

(继承自 CodeGroup)
MembershipCondition
已过时.
已过时.
已过时.
已过时.

获取或设置代码组的成员条件。

(继承自 CodeGroup)
MergeLogic
已过时.
已过时.
已过时.
已过时.

获取合并逻辑。

Name
已过时.
已过时.
已过时.
已过时.

获取或设置代码组的名称。

(继承自 CodeGroup)
PermissionSetName
已过时.
已过时.
已过时.
已过时.

获取代码组的命名的权限集的名称。

(继承自 CodeGroup)
PolicyStatement
已过时.
已过时.
已过时.
已过时.

获取或设置与该代码组关联的策略声明。

(继承自 CodeGroup)

方法

AddChild(CodeGroup)
已过时.
已过时.
已过时.
已过时.

将子代码组添加到当前代码组。

(继承自 CodeGroup)
Copy()
已过时.
已过时.
已过时.
已过时.

生成当前代码组的深层副本。

CreateXml(SecurityElement, PolicyLevel)
已过时.
已过时.
已过时.
已过时.

当在派生类中被重写时,序列化导出的代码组所特有的属性和内部状态,并将序列化添加到指定的 SecurityElement

(继承自 CodeGroup)
Equals(CodeGroup, Boolean)
已过时.
已过时.
已过时.
已过时.

确定指定的代码组是否等效于当前代码组,如果指定,还检查子代码组。

(继承自 CodeGroup)
Equals(Object)
已过时.
已过时.
已过时.
已过时.

确定指定的代码组是否等效于当前代码组。

(继承自 CodeGroup)
FromXml(SecurityElement)
已过时.
已过时.
已过时.
已过时.

从 XML 编码重新构造具有给定状态的安全对象。

(继承自 CodeGroup)
FromXml(SecurityElement, PolicyLevel)
已过时.
已过时.
已过时.
已过时.

从 XML 编码重新构造具有给定的状态和策略级别的安全对象。

(继承自 CodeGroup)
GetHashCode()
已过时.
已过时.
已过时.
已过时.

获取当前代码组的哈希代码。

(继承自 CodeGroup)
GetType()
已过时.
已过时.
已过时.
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.
已过时.
已过时.
已过时.

创建当前 Object 的浅表副本。

(继承自 Object)
ParseXml(SecurityElement, PolicyLevel)
已过时.
已过时.
已过时.
已过时.

当在派生类中被重写时,从指定的 SecurityElement 重新构造导出的代码组所特有的属性和内部状态。

(继承自 CodeGroup)
RemoveChild(CodeGroup)
已过时.
已过时.
已过时.
已过时.

移除指定的子代码组。

(继承自 CodeGroup)
Resolve(Evidence)
已过时.
已过时.
已过时.
已过时.

对一组证据解析代码组及其子代的策略。

ResolveMatchingCodeGroups(Evidence)
已过时.
已过时.
已过时.
已过时.

解析匹配的代码组。

ToString()
已过时.
已过时.
已过时.
已过时.

返回表示当前对象的字符串。

(继承自 Object)
ToXml()
已过时.
已过时.
已过时.
已过时.

创建安全对象及其当前状态的 XML 编码。

(继承自 CodeGroup)
ToXml(PolicyLevel)
已过时.
已过时.
已过时.
已过时.

创建安全对象、其当前状态以及代码所在策略级别的 XML 编码。

(继承自 CodeGroup)

适用于