EnumerableToDispatchMarshaler.GetNativeDataSize Method ()


Returns the size in bytes of the unmanaged data to be marshaled.

Namespace:   System.Runtime.InteropServices.CustomMarshalers
Assembly:  CustomMarshalers (in CustomMarshalers.dll)

public virtual int GetNativeDataSize()

Return Value

Type: System.Int32

-1 to indicate the type this marshaler handles is not a value type.

Because custom marshaling of value types is not supported in the .NET Framework, this method always returns -1.

.NET Framework
Available since 1.1
Return to top