Share via


ICodeGenerationHost.LogWarning 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 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
Sub LogWarning ( _
    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.LogWarning(message, subcategory, _
    errorCode, helpKeyword, file, lineNumber, _
    columnNumber, endLineNumber, endColumnNumber)
void LogWarning(
    string message,
    string subcategory,
    string errorCode,
    string helpKeyword,
    string file,
    int lineNumber,
    int columnNumber,
    int endLineNumber,
    int endColumnNumber
)
void LogWarning(
    String^ message, 
    String^ subcategory, 
    String^ errorCode, 
    String^ helpKeyword, 
    String^ file, 
    int lineNumber, 
    int columnNumber, 
    int endLineNumber, 
    int endColumnNumber
)
abstract LogWarning : 
        message:string * 
        subcategory:string * 
        errorCode:string * 
        helpKeyword:string * 
        file:string * 
        lineNumber:int * 
        columnNumber:int * 
        endLineNumber:int * 
        endColumnNumber:int -> unit 
function LogWarning(
    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

ICodeGenerationHost Interface

LogWarning Overload

Microsoft.ServiceModel.DomainServices.Tools Namespace