Overlapped.Unpack Method (NativeOverlapped*)

 

Unpacks the specified unmanaged NativeOverlapped structure into a managed Overlapped object.

This API is not CLS-compliant.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
[CLSCompliantAttribute(false)]
public static unsafe Overlapped Unpack(
	NativeOverlapped* nativeOverlappedPtr
)

Parameters

nativeOverlappedPtr
Type: System.Threading.NativeOverlapped*

An unmanaged pointer to a NativeOverlapped structure.

Return Value

Type: System.Threading.Overlapped

An Overlapped object containing the information unpacked from the native structure.

Exception Condition
ArgumentNullException

nativeOverlappedPtr is null.

The NativeOverlapped structure is not freed from physical memory until you call the Free method.

SecurityCriticalAttribute

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

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: