Export (0) Print
Expand All

ArrayWithOffset Structure

Encapsulates an array and an offset within the specified array.

For a list of all members of this type, see ArrayWithOffset Members.

System.Object
   System.ValueType
      System.Runtime.InteropServices.ArrayWithOffset

[Visual Basic]
Public Structure ArrayWithOffset
[C#]
public struct ArrayWithOffset
[C++]
public __value struct ArrayWithOffset

[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Can be used as an argument to a native method reached through platform invoke. In this case, the platform invoke marshaler will retrieve the starting address of the array, add the offset, and pass the resulting pointer to the underlying native function. This structure only supports arrays containing no references, such as primitive type arrays and value type arrays containing only fields of primitive types.

Requirements

Namespace: System.Runtime.InteropServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ArrayWithOffset Members | System.Runtime.InteropServices Namespace

Show:
© 2014 Microsoft