invalidMemberDeclaration MDA
Note
This article is specific to .NET Framework. It doesn't apply to newer implementations of .NET, including .NET 6 and later versions.
The invalidMemberDeclaration
managed debugging assistant (MDA) is activated to report an error that occurs while determining how to marshal the parameters of a member to be called from COM.
Symptoms
A failure HRESULT is returned to COM without the managed method having been called.
Cause
This is most likely due to an incompatible MarshalAsAttribute attribute on one of the parameters.
Resolution
Specify valid MarshalAsAttribute attributes on the parameters.
Effect on the Runtime
This MDA has no effect on the CLR.
Output
An informational message containing the member name, type name, and error message.
Configuration
<mdaConfig>
<assistants>
<invalidMemberDeclaration/>
</assistants>
</mdaConfig>
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho