System.Security.Policy.IIdentityPermissionFactory Interface

Assembly: Mscorlib.dll
Namespace: System.Security.Policy
Summary
Defines the method that creates a new identity permission.
C# Syntax:
public interface IIdentityPermissionFactory
Remarks
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 IIdentityPermissionFactory.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.
See also:
System.Security.Policy Namespace | Evidence | MSDN: securitypolicymanagement

System.Security.Policy.IIdentityPermissionFactory Member List:

Public Methods
CreateIdentityPermission Creates a new identity permission for the specified evidence.

System.Security.Policy.IIdentityPermissionFactory Member Details

Method: CreateIdentityPermission(
   Evidence evidence
)
Summary
Creates a new identity permission for the specified evidence.
C# Syntax:
IPermission CreateIdentityPermission(
   Evidence evidence
);
Parameters:

evidence

The evidence from which to create the new identity permission.

Return Value:
The new identity permission.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.