The exception thrown when the rank of an incoming SAFEARRAY does not match the rank specified in the managed signature.
See Also: SafeArrayRankMismatchException Members
SafeArrayRankMismatchException uses the HRESULT COR_E_SAFEARRAYRANKMISMATCH which has the value 0x80131538.
The rank of a SAFEARRAY is the number of dimensions in that array.