Variant data type in C#
Posted on 2006-06-07
I'm trying to write a Browser Helper Object, and need access to the postData parameter of the OnBeforeNavigate2 event. However, the function signature in C# has this parameter as "ref object postData". I know that the actual data type is a VARIANT (specifically, a SAFEARRAY of bytes), but have absolutely no clue how to be able to get this information into a usable format (aka a string). Does anyone have any advice they could offer? I'm in a bit of a bind here!