DotNetParameter.IsStructMappingInvalid

Syntax

DotNetParameter.IsStructMappingInvalid( reasonNotValid)

Return Value

Boolean

Returns True when the parameter is a struct or struct array, the argument expression is valid and non-empty, and the argument or struct mapping of the argument is invalid. In all other cases, this method returns False .

Purpose

Indicates whether the argument you specify for a .NET struct or struct array parameter is valid by checking the struct passing information for any custom data types used to ensure that it matches the struct definition stored when you specified the module.

Note This method does not load the assembly you specify. The method relies on the struct information stored for the parameter when the module was last specified.

Parameters

reasonNotValid As String

[Out] When this method returns True , this parameter returns the reason why the argument is invalid.