Compartilhar via


RiaClientFilesTask.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 specified message as a warning, 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
Public 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 RiaClientFilesTask
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)
public void LogError(
    string message,
    string subcategory,
    string errorCode,
    string helpKeyword,
    string file,
    int lineNumber,
    int columnNumber,
    int endLineNumber,
    int endColumnNumber
)
public:
virtual void LogError(
    String^ message, 
    String^ subcategory, 
    String^ errorCode, 
    String^ helpKeyword, 
    String^ file, 
    int lineNumber, 
    int columnNumber, 
    int endLineNumber, 
    int endColumnNumber
) sealed
abstract LogError : 
        message:string * 
        subcategory:string * 
        errorCode:string * 
        helpKeyword:string * 
        file:string * 
        lineNumber:int * 
        columnNumber:int * 
        endLineNumber:int * 
        endColumnNumber:int -> unit 
override LogError : 
        message:string * 
        subcategory:string * 
        errorCode:string * 
        helpKeyword:string * 
        file:string * 
        lineNumber:int * 
        columnNumber:int * 
        endLineNumber:int * 
        endColumnNumber:int -> unit 
public final function LogError(
    message : String, 
    subcategory : String, 
    errorCode : String, 
    helpKeyword : String, 
    file : String, 
    lineNumber : int, 
    columnNumber : int, 
    endLineNumber : int, 
    endColumnNumber : int
)

Parameters

  • subcategory
    Type: System.String
    The optional description of the error type.
  • 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.

See Also

Reference

RiaClientFilesTask Class

LogError Overload

Microsoft.ServiceModel.DomainServices.Tools Namespace