See Also: ReflectionPermission Members
Code with the appropriate System.Security.Permissions.ReflectionPermission has access to non-public members of a type . Without System.Security.Permissions.ReflectionPermission , code can access only the public members of assemblies.
Without System.Security.Permissions.ReflectionPermission, untrusted code can perform the following operations on members of loaded assemblies:
System.Security.Permissions.ReflectionPermission instances can allow untrusted code to obtain type and member information, invoke members, and enumerate types that would otherwise be inaccessible.
The XML encoding of a System.Security.Permissions.ReflectionPermission instance is defined below in EBNF format. The following conventions are used:
The following meta-language symbols are used:
BuildVersion refers to the build version of the shipping CLI. This is specified as a dotted build number such as '2412.0' .
ECMAPubKeyToken ::= b77a5c561934e089
ReflectionPermissionFlag = MemberAccess | TypeInformation
Each ReflectionPermissionFlag can appear in the XML no more than once. For example, Flags=MemberAccess,MemberAccess is illegal.
The XML encoding of a System.Security.Permissions.ReflectionPermission instance is as follows: