Bagikan melalui


ThreadPool.UnsafeQueueNativeOverlapped(NativeOverlapped*) Metode

Definisi

Penting

API ini bukan kompatibel CLS.

Mengantrekan operasi I/O yang tumpang tindih untuk eksekusi.

public:
 static bool UnsafeQueueNativeOverlapped(System::Threading::NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[<System.CLSCompliant(false)>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool
[<System.CLSCompliant(false)>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool

Parameter

overlapped
NativeOverlapped*

Struktur NativeOverlapped untuk mengantre.

Mengembalikan

true jika operasi berhasil diantrekan ke port penyelesaian I/O; jika tidak, false.

Atribut

Keterangan

Untuk informasi tentang menggunakan I/O asli Win32 yang tumpang tindih, lihat Overlapped kelas, NativeOverlapped struktur, dan OVERLAPPED struktur di SDK Platform Win32.

Perhatian

Menggunakan metode ini UnsafeQueueNativeOverlapped secara tidak sengaja dapat membuka lubang keamanan. Keamanan akses kode mendasarkan pemeriksaan izinnya pada izin semua pemanggil pada tumpukan. Ketika pekerjaan diantrekan pada utas kumpulan utas menggunakan UnsafeQueueNativeOverlapped, tumpukan utas kumpulan utas tidak memiliki konteks pemanggil yang sebenarnya. Kode berbahaya mungkin dapat mengeksploitasi ini untuk menghindari pemeriksaan izin.

Berlaku untuk