UnmanagedMarshal.ElementCount Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a number element. This property is read-only.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public int ElementCount { get; }

Property Value

Type: System.Int32

An integer indicating the element count.

Exception Condition

The argument is not an unmanaged element count.

There is an ElementCount only if there is a NativeTypeFixedArray.

.NET Framework
Available since 1.1
Return to top