Compartir a través de


Marshal.Copy Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

This type can be used only by trusted applications. If you try to use its members in a partial-trust application, your code will throw a MethodAccessException exception. This type is security-critical, which restricts its use.

[SECURITY CRITICAL]

Copies data from a managed array to an unmanaged memory pointer, or from an unmanaged memory pointer to a managed array.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Byte[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed 8-bit unsigned integer array to an unmanaged memory pointer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Char[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed character array to an unmanaged memory pointer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Double[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed double-precision floating-point number array to an unmanaged memory pointer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Int16[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed 16-bit signed integer array to an unmanaged memory pointer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Int32[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed 32-bit signed integer array to an unmanaged memory pointer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Int64[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed 64-bit signed integer array to an unmanaged memory pointer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Byte[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed 8-bit unsigned integer array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Char[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed character array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Double[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed double-precision floating-point number array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Int16[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed 16-bit signed integer array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Int32[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed 32-bit signed integer array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Int64[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed 64-bit signed integer array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(IntPtr, array<Single[], Int32, Int32) Security Critical. Copies data from an unmanaged memory pointer to a managed single-precision floating-point number array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Copy(array<Single[], Int32, IntPtr, Int32) Security Critical. Copies data from a one-dimensional, managed single-precision floating-point number array to an unmanaged memory pointer.

Top