ExpandoToDispatchExMarshaler.GetNativeDataSize 方法
定义
返回要封送处理的非托管数据的大小(以字节为单位)。Returns the size in bytes of the unmanaged data to be marshaled.
public:
override int GetNativeDataSize();
public:
virtual int GetNativeDataSize();
public override int GetNativeDataSize ();
public virtual int GetNativeDataSize ();
abstract member GetNativeDataSize : unit -> int
override this.GetNativeDataSize : unit -> int
Public Overrides Function GetNativeDataSize () As Integer
Public Overridable Function GetNativeDataSize () As Integer
返回
-1 指示此封送拆收器处理的类型不是值类型。-1 to indicate the type this marshaler handles is not a value type.
实现
注解
由于 .NET Framework 中不支持值类型的自定义封送处理,因此此方法始终返回-1。Because custom marshaling of value types is not supported in the .NET Framework, this method always returns -1.