IIdentityPermissionFactory 接口

定义

注意

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

定义创建新标识权限的方法。

public interface class IIdentityPermissionFactory
public interface IIdentityPermissionFactory
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface IIdentityPermissionFactory
[System.Runtime.InteropServices.ComVisible(true)]
public interface IIdentityPermissionFactory
type IIdentityPermissionFactory = interface
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type IIdentityPermissionFactory = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type IIdentityPermissionFactory = interface
Public Interface IIdentityPermissionFactory
派生
属性

注解

某些类型的证据具有相应的标识权限,该权限授予具有该证据的程序集。 这样,其他代码就可以要求标识,以便只有具有特定证据的代码才会通过。 例如,可以要求调用方具有特定的强名称;只有具有该强名称的调用方才会传递需求。 通过实现IIdentityPermissionFactory证据对象,可以提供.NET Framework安全系统的实现CreateIdentityPermission,以获取表示该证据片段的标识权限。 在策略解析期间,安全系统将对实现 IIdentityPermissionFactory 和授予相应程序集生成的标识权限的所有证据对象调用该方法。

方法

CreateIdentityPermission(Evidence)

创建指定证据的新标识权限。

适用于

另请参阅