Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IIdentityPermissionFactory Interface

Defines the method that creates a new identity permission.

Namespace:  System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)]
public interface IIdentityPermissionFactory

The IIdentityPermissionFactory type exposes the following members.

  NameDescription
Public methodCreateIdentityPermissionCreates a new identity permission for the specified evidence.
Top

Some types of evidence have a corresponding identity permission that is granted to assemblies with that evidence. This allows other code to make identity demands, so that only code with a specific piece of evidence will pass. For example, you can demand that your callers have a specific strong name; only callers with that strong name will pass the demand. By implementing IIdentityPermissionFactory for an evidence object, you provide an implementation of CreateIdentityPermission that the .NET Framework security system can call to get an identity permission that represents that piece of evidence. During policy resolution, the security system will call that method on all evidence objects that implement IIdentityPermissionFactory and grant the resulting identity permissions to the appropriate assembly.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft