共用方式為


ComErrorException 建構函式 (Int32, String, Int32, String, String, Guid, String)

Initializes a new instance of the ComErrorException class.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Replication (在 Microsoft.SqlServer.Replication.dll 中)

語法

'宣告
Public Sub New ( _
    comHResult As Integer, _
    description As String, _
    helpContext As Integer, _
    helpFile As String, _
    source As String, _
    interfaceId As Guid, _
    errorMessage As String _
)
'用途
Dim comHResult As Integer 
Dim description As String 
Dim helpContext As Integer 
Dim helpFile As String 
Dim source As String 
Dim interfaceId As Guid 
Dim errorMessage As String 

Dim instance As New ComErrorException(comHResult, _
    description, helpContext, helpFile, _
    source, interfaceId, errorMessage)
public ComErrorException(
    int comHResult,
    string description,
    int helpContext,
    string helpFile,
    string source,
    Guid interfaceId,
    string errorMessage
)
public:
ComErrorException(
    int comHResult, 
    String^ description, 
    int helpContext, 
    String^ helpFile, 
    String^ source, 
    Guid interfaceId, 
    String^ errorMessage
)
new : 
        comHResult:int * 
        description:string * 
        helpContext:int * 
        helpFile:string * 
        source:string * 
        interfaceId:Guid * 
        errorMessage:string -> ComErrorException
public function ComErrorException(
    comHResult : int, 
    description : String, 
    helpContext : int, 
    helpFile : String, 
    source : String, 
    interfaceId : Guid, 
    errorMessage : String
)

參數

  • comHResult
    型別:System.Int32
    The error code (HRESULT) value associated with this exception.
  • helpContext
    型別:System.Int32
    The context of a topic in a Help file.
  • helpFile
    型別:System.String
    The fully qualified path to a Help file.
  • source
    型別:System.String
    The name of the source of the error.
  • interfaceId
    型別:System.Guid
    The identifier of the COM interface that is the source of the error.

請參閱

參考

ComErrorException 類別

ComErrorException 多載

Microsoft.SqlServer.Replication 命名空間