Warn Method (String, String)
Record a warning message.
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public Overrides Sub Warn ( _
category As String, _
debugText As String _
)
'Usage
Dim instance As WebDebugContext
Dim category As String
Dim debugText As String
instance.Warn(category, debugText)
public override void Warn(
string category,
string debugText
)
public:
virtual void Warn(
String^ category,
String^ debugText
) override
public override function Warn(
category : String,
debugText : String
)
Parameters
- category
Type: System..::.String
The category the warning belongs to.
- debugText
Type: System..::.String
Remarks
This uses the Warn method of the ASP.Net TraceContext to log the relevant messages. These messages will be prefixed with the string "Warning: "
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.