_Exception 介面

定義

重要

此 API 不符合 CLS 規範。

公開 Exception 類別的公用成員至 Unmanaged 程式碼。Exposes the public members of the Exception class to unmanaged code.

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
type _Exception = interface
Public Interface _Exception
衍生
屬性

備註

這個介面是用來從非受控程式碼存取 managed 類別,不應從 managed 程式碼呼叫。This interface is for access to managed classes from unmanaged code and should not be called from managed code.

這個介面會保留可由非受控 COM 物件存取之 @no__t 0 類別成員的 vtable 順序。This interface preserves the vtable order of the System.Exception class members that can be accessed by unmanaged COM objects.

屬性

HelpLink

為 COM 物件提供與版本無關的 HelpLink 屬性之存取權。Provides COM objects with version-independent access to the HelpLink property.

InnerException

為 COM 物件提供與版本無關的 InnerException 屬性之存取權。Provides COM objects with version-independent access to the InnerException property.

Message

為 COM 物件提供與版本無關的 Message 屬性之存取權。Provides COM objects with version-independent access to the Message property.

Source

為 COM 物件提供與版本無關的 Source 屬性之存取權。Provides COM objects with version-independent access to the Source property.

StackTrace

為 COM 物件提供與版本無關的 StackTrace 屬性之存取權。Provides COM objects with version-independent access to the StackTrace property.

TargetSite

為 COM 物件提供與版本無關的 TargetSite 屬性之存取權。Provides COM objects with version-independent access to the TargetSite property.

方法

Equals(Object)

為 COM 物件提供與版本無關的 Equals(Object) 方法之存取權。Provides COM objects with version-independent access to the Equals(Object) method.

GetBaseException()

為 COM 物件提供與版本無關的 GetBaseException() 方法之存取權。Provides COM objects with version-independent access to the GetBaseException() method.

GetHashCode()

為 COM 物件提供與版本無關的 GetHashCode() 方法之存取權。Provides COM objects with version-independent access to the GetHashCode() method.

GetObjectData(SerializationInfo, StreamingContext)

為 COM 物件提供與版本無關的 GetObjectData(SerializationInfo, StreamingContext) 方法之存取權。Provides COM objects with version-independent access to the GetObjectData(SerializationInfo, StreamingContext) method.

GetType()

為 COM 物件提供與版本無關的 GetType() 方法之存取權。Provides COM objects with version-independent access to the GetType() method.

ToString()

為 COM 物件提供與版本無關的 ToString() 方法之存取權。Provides COM objects with version-independent access to the ToString() method.

適用於

另請參閱