_Exception 介面

定義

重要

此 API 不符合 CLS 規範。

公開 Exception 類別的公用成員至 Unmanaged 程式碼。

public interface class _Exception
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("b36b5c63-42ef-38bc-a07e-0b34c98f164a")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)]
public interface _Exception
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("b36b5c63-42ef-38bc-a07e-0b34c98f164a")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)>]
type _Exception = interface
Public Interface _Exception
衍生
屬性

備註

此介面適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

這個介面會保留非受控 COM 物件可存取之類別成員的 System.Exception vtable 順序。

屬性

HelpLink

為 COM 物件提供與版本無關的 HelpLink 屬性之存取權。

InnerException

為 COM 物件提供與版本無關的 InnerException 屬性之存取權。

Message

為 COM 物件提供與版本無關的 Message 屬性之存取權。

Source

為 COM 物件提供與版本無關的 Source 屬性之存取權。

StackTrace

為 COM 物件提供與版本無關的 StackTrace 屬性之存取權。

TargetSite

為 COM 物件提供與版本無關的 TargetSite 屬性之存取權。

方法

Equals(Object)

為 COM 物件提供與版本無關的 Equals(Object) 方法之存取權。

GetBaseException()

為 COM 物件提供與版本無關的 GetBaseException() 方法之存取權。

GetHashCode()

為 COM 物件提供與版本無關的 GetHashCode() 方法之存取權。

GetObjectData(SerializationInfo, StreamingContext)

為 COM 物件提供與版本無關的 GetObjectData(SerializationInfo, StreamingContext) 方法之存取權。

GetType()

為 COM 物件提供與版本無關的 GetType() 方法之存取權。

ToString()

為 COM 物件提供與版本無關的 ToString() 方法之存取權。

適用於

另請參閱