Marshal.UnsafeAddrOfPinnedArrayElement Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Name | Description |
|---|---|
| UnsafeAddrOfPinnedArrayElement(Array, Int32) |
Zastaralé.
Získá adresu prvku v zadaném indexu uvnitř zadaného pole. |
| UnsafeAddrOfPinnedArrayElement<T>(T[], Int32) |
Získá adresu prvku v zadaném indexu v poli zadaného typu. |
UnsafeAddrOfPinnedArrayElement(Array, Int32)
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
Upozornění
UnsafeAddrOfPinnedArrayElement(Array, Int32) may be unavailable in future releases. Instead, use UnsafeAddrOfPinnedArrayElement<T>(T[], Int32). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296517
Získá adresu prvku v zadaném indexu uvnitř zadaného pole.
public:
static IntPtr UnsafeAddrOfPinnedArrayElement(Array ^ arr, int index);
[System.Obsolete("UnsafeAddrOfPinnedArrayElement(Array, Int32) may be unavailable in future releases. Instead, use UnsafeAddrOfPinnedArrayElement<T>(T[], Int32). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296517")]
[System.Security.SecurityCritical]
public static IntPtr UnsafeAddrOfPinnedArrayElement(Array arr, int index);
public static IntPtr UnsafeAddrOfPinnedArrayElement(Array arr, int index);
[System.Security.SecurityCritical]
public static IntPtr UnsafeAddrOfPinnedArrayElement(Array arr, int index);
[<System.Obsolete("UnsafeAddrOfPinnedArrayElement(Array, Int32) may be unavailable in future releases. Instead, use UnsafeAddrOfPinnedArrayElement<T>(T[], Int32). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296517")>]
[<System.Security.SecurityCritical>]
static member UnsafeAddrOfPinnedArrayElement : Array * int -> nativeint
static member UnsafeAddrOfPinnedArrayElement : Array * int -> nativeint
[<System.Security.SecurityCritical>]
static member UnsafeAddrOfPinnedArrayElement : Array * int -> nativeint
Public Shared Function UnsafeAddrOfPinnedArrayElement (arr As Array, index As Integer) As IntPtr
Parametry
- arr
- Array
Pole, které obsahuje požadovaný prvek.
- index
- Int32
Index v parametru arr požadovaného prvku.
Návraty
nativeint
Adresa index uvnitř arr.
- Atributy
Poznámky
Pole musí být připnuto před GCHandle předáním této metodě. Pro maximální výkon tato metoda neověřuje pole předané do něj; to může vést k neočekávanému chování.
Viz také
Platí pro
UnsafeAddrOfPinnedArrayElement<T>(T[], Int32)
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
- Zdroj:
- Marshal.cs
Získá adresu prvku v zadaném indexu v poli zadaného typu.
public:
generic <typename T>
static IntPtr UnsafeAddrOfPinnedArrayElement(cli::array <T> ^ arr, int index);
[System.Security.SecurityCritical]
public static IntPtr UnsafeAddrOfPinnedArrayElement<T>(T[] arr, int index);
public static IntPtr UnsafeAddrOfPinnedArrayElement<T>(T[] arr, int index);
[<System.Security.SecurityCritical>]
static member UnsafeAddrOfPinnedArrayElement : 'T[] * int -> nativeint
static member UnsafeAddrOfPinnedArrayElement : 'T[] * int -> nativeint
Public Shared Function UnsafeAddrOfPinnedArrayElement(Of T) (arr As T(), index As Integer) As IntPtr
Parametry typu
- T
Typ pole.
Parametry
- arr
- T[]
Pole, které obsahuje požadovaný prvek.
- index
- Int32
Index požadovaného prvku v arr poli.
Návraty
nativeint
Adresa index in arr.
- Atributy
Poznámky
Pole musí být připnuto pomocí předaného GCHandle této metodě. Pro maximální výkon tato metoda neověřuje pole předané do něj; to může vést k neočekávanému chování.