This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.
[SECURITY CRITICAL] Creates a dynamic method, specifying the method name, attributes, calling convention, return type, parameter types, the type with which the dynamic method is logically associated, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method.
Namespace:
System.Reflection.Emit
Assembly:
mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
<SecurityCriticalAttribute> _
Public Sub New ( _
name As String, _
attributes As MethodAttributes, _
callingConvention As CallingConventions, _
returnType As Type, _
parameterTypes As Type(), _
owner As Type, _
skipVisibility As Boolean _
)
Dim name As String
Dim attributes As MethodAttributes
Dim callingConvention As CallingConventions
Dim returnType As Type
Dim parameterTypes As Type()
Dim owner As Type
Dim skipVisibility As Boolean
Dim instance As New DynamicMethod(name, attributes, _
callingConvention, returnType, parameterTypes, _
owner, skipVisibility)
[SecurityCriticalAttribute]
public DynamicMethod(
string name,
MethodAttributes attributes,
CallingConventions callingConvention,
Type returnType,
Type[] parameterTypes,
Type owner,
bool skipVisibility
)
Parameters
- name
- Type: System..::.String
The name of the dynamic method. This can be a zero-length string, but it cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
- attributes
- Type: System.Reflection..::.MethodAttributes
A bitwise combination of MethodAttributes values that specifies the attributes of the dynamic method. The only combination allowed is Public and Static.
- callingConvention
- Type: System.Reflection..::.CallingConventions
The calling convention for the dynamic method. Must be Standard.
- returnType
- Type: System..::.Type
A Type object that specifies the return type of the dynamic method, or nullNothingnullptra null reference (Nothing in Visual Basic) if the method has no return type.
- parameterTypes
- Type: array<System..::.Type>[]()[]
An array of Type objects specifying the types of the parameters of the dynamic method, or nullNothingnullptra null reference (Nothing in Visual Basic) if the method has no parameters.
- owner
- Type: System..::.Type
A Type with which the dynamic method is logically associated. The dynamic method has access to all members of the type.
- skipVisibility
- Type: System..::.Boolean
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method; otherwise, false.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference