ICodeGenerationHost.LogError Method (String, String, String, String, String, Int32, Int32, Int32, Int32)
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Logs the given message as an error, together with information about the source location.
Namespace: Microsoft.ServiceModel.DomainServices.Tools
Assembly: Microsoft.ServiceModel.DomainServices.Tools (in Microsoft.ServiceModel.DomainServices.Tools.dll)
Syntax
'Declaration
Sub LogError ( _
message As String, _
subcategory As String, _
errorCode As String, _
helpKeyword As String, _
file As String, _
lineNumber As Integer, _
columnNumber As Integer, _
endLineNumber As Integer, _
endColumnNumber As Integer _
)
'Usage
Dim instance As ICodeGenerationHost
Dim message As String
Dim subcategory As String
Dim errorCode As String
Dim helpKeyword As String
Dim file As String
Dim lineNumber As Integer
Dim columnNumber As Integer
Dim endLineNumber As Integer
Dim endColumnNumber As Integer
instance.LogError(message, subcategory, _
errorCode, helpKeyword, file, lineNumber, _
columnNumber, endLineNumber, endColumnNumber)
void LogError(
string message,
string subcategory,
string errorCode,
string helpKeyword,
string file,
int lineNumber,
int columnNumber,
int endLineNumber,
int endColumnNumber
)
void LogError(
String^ message,
String^ subcategory,
String^ errorCode,
String^ helpKeyword,
String^ file,
int lineNumber,
int columnNumber,
int endLineNumber,
int endColumnNumber
)
abstract LogError :
message:string *
subcategory:string *
errorCode:string *
helpKeyword:string *
file:string *
lineNumber:int *
columnNumber:int *
endLineNumber:int *
endColumnNumber:int -> unit
function LogError(
message : String,
subcategory : String,
errorCode : String,
helpKeyword : String,
file : String,
lineNumber : int,
columnNumber : int,
endLineNumber : int,
endColumnNumber : int
)
Parameters
- message
Type: System.String
The message to log as an error.
- subcategory
Type: System.String
The optional description of the error type.
- errorCode
Type: System.String
The optional error code.
- helpKeyword
Type: System.String
The optional help keyword.
- file
Type: System.String
The optional path to the file containing the error.
- lineNumber
Type: System.Int32
The zero-relative line number in the file where the error begins.
- columnNumber
Type: System.Int32
The zero-relative column number in the file where the error begins
- endLineNumber
Type: System.Int32
The zero-relative line number in the file where the error ends.
- endColumnNumber
Type: System.Int32
The zero-relative column number in the file where the error ends.