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

Marshal.PrelinkAll Method

Performs a pre-link check for all methods on a class.

Namespace:  System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public static void PrelinkAll(
	Type c
)

Parameters

c
Type: System.Type

The class whose methods are to be checked.

ExceptionCondition
ArgumentNullException

The c parameter is null.

The PrelinkAll method invokes Marshal.Prelink on every method for a given type. Prelink executes one-time method setup tasks without calling each method. You can use PrelinkAll only for platform invoke calls.

.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

XNA Framework

Supported in: 3.0, 2.0, 1.0

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

  • SecurityCriticalAttribute 

    requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Show:
© 2015 Microsoft