Warn Method (String, String, Exception)
Records a warning message along with an exception.
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public MustOverride Sub Warn ( _
category As String, _
debugText As String, _
ex As Exception _
)
'Usage
Dim instance As DebugContext
Dim category As String
Dim debugText As String
Dim ex As Exception
instance.Warn(category, debugText, ex)
public abstract void Warn(
string category,
string debugText,
Exception ex
)
public:
virtual void Warn(
String^ category,
String^ debugText,
Exception^ ex
) abstract
public abstract function Warn(
category : String,
debugText : String,
ex : Exception
)
Parameters
- category
Type: System..::.String
The category the warning belongs to.
- debugText
Type: System..::.String
The message the warning contains.
- ex
Type: System..::.Exception
The Exception responsible for the warning.
Remarks
Use this method to record a warning message, with an exception.
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.