3 instantiations of InvalidOleVariantTypeException
System.Private.Windows.Core (3)
Windows\Win32\System\Variant\VARIANT.cs (3)
96
throw new
InvalidOleVariantTypeException
();
186
throw new
InvalidOleVariantTypeException
();
626
throw new
InvalidOleVariantTypeException
();
53 references to InvalidOleVariantTypeException
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\ErrObject.vb (1)
418
ElseIf TypeOf e Is Runtime.InteropServices.
InvalidOleVariantTypeException
Then
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
703
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.
InvalidOleVariantTypeException
))]
netstandard (1)
netstandard.cs (1)
1709
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.
InvalidOleVariantTypeException
))]
System.Runtime.InteropServices (1)
artifacts\obj\System.Runtime.InteropServices\Debug\net10.0\System.Runtime.InteropServices.Forwards.cs (1)
102
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.
InvalidOleVariantTypeException
))]
System.Windows.Forms.Primitives.Tests (49)
Interop\Oleaut32\VARIANTTests.cs (49)
1040
AssertToObjectThrows<
InvalidOleVariantTypeException
>(variant);
1194
AssertToObjectThrows<
InvalidOleVariantTypeException
>(variant);
1219
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1231
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<sbyte>(), variant);
1252
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1259
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<byte>(), variant);
1280
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1287
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<short>(), variant);
1308
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1315
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<ushort>(), variant);
1337
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(expected, variant);
1344
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<bool>(), variant);
1365
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1372
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1393
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1400
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<uint>(), variant);
1425
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1437
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1462
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1474
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<uint>(), variant);
1495
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1502
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<long>(), variant);
1523
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1530
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<ulong>(), variant);
1555
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1567
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1588
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1595
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<double>(), variant);
1620
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1632
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1657
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(expected, variant);
1669
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<decimal>(), variant);
1698
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(expected, variant);
1710
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<DateTime>(), variant);
1736
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(expected, variant);
1743
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<DateTime>(), variant);
1768
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(result, variant);
1780
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1811
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(new string[] { null, "text", "" }, variant);
1823
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1853
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(new string[] { null, "text", "" }, variant);
1865
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1895
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(new string[] { null, "text", "" }, variant);
1907
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1930
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(new object[] { 1, 2u }, variant);
1942
AssertToObjectEqualExtension<
InvalidOleVariantTypeException
>(Array.Empty<int>(), variant);
1990
AssertToObjectThrows<
InvalidOleVariantTypeException
>(variant);
5295
AssertToObjectThrows<
InvalidOleVariantTypeException
>(variant);
5322
AssertToObjectThrows<
InvalidOleVariantTypeException
>(variant);