Partager via


CommerceTargetingException Constructor (String, COMException)

Initializes a new instance of the CommerceTargetingException class using the specified error message and a reference to the inner COM exception that is the cause of this exception.

Namespace:  Microsoft.CommerceServer.Runtime.Targeting
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    comException As COMException _
)
'Usage
Dim message As String
Dim comException As COMException

Dim instance As New CommerceTargetingException(message, _
    comException)
public CommerceTargetingException(
    string message,
    COMException comException
)
public:
CommerceTargetingException(
    String^ message, 
    COMException^ comException
)
public function CommerceTargetingException(
    message : String, 
    comException : COMException
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.

Remarks

The exception that is thrown when the profiles collection contains profiles other than User and TargetingContext.

Permissions

See Also

Reference

CommerceTargetingException Class

CommerceTargetingException Members

CommerceTargetingException Overload

Microsoft.CommerceServer.Runtime.Targeting Namespace