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.
- comException
Type: System.Runtime.InteropServices..::.COMException
The inncer COM exception that is the cause of the current exception.
Remarks
The exception that is thrown when the profiles collection contains profiles other than User and TargetingContext.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CommerceTargetingException Class
CommerceTargetingException Members