Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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
/** @attribute ComVisibleAttribute(true) */ 
public interface IIdentityPermissionFactory
ComVisibleAttribute(true) 
public interface IIdentityPermissionFactory

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.