3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 /*=============================================================================
8 ** Class: InvalidOleVariantTypeException
10 ** Purpose: The type of an OLE variant that was passed into the runtime is
13 =============================================================================*/
15 namespace System.Runtime.InteropServices {
18 using System.Runtime.Serialization;
20 [System.Runtime.InteropServices.ComVisible(true)]
21 [Serializable] public class InvalidOleVariantTypeException : SystemException {
22 public InvalidOleVariantTypeException()
23 : base(Environment.GetResourceString("Arg_InvalidOleVariantTypeException")) {
24 SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
27 public InvalidOleVariantTypeException(String message)
29 SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
32 public InvalidOleVariantTypeException(String message, Exception inner)
33 : base(message, inner) {
34 SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
37 protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context) : base(info, context) {