Frees a BSTR using the COM SysFreeString function.
Assembly: mscorlib (in mscorlib.dll)
Like Marshal.FreeCoTaskMem and Marshal.FreeHGlobal, you can use this method to deallocate memory. calls the COM SysFreeString function, which frees memory allocated by any of the following unmanaged methods: SysAllocString, SysAllocStringByteLen, SysAllocStringLen, SysReAllocString, SysReAllocStringLen. You can call unmanaged methods such as these with platform invoke. For details, see Consuming Unmanaged DLL Functions.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.