Partilhar via


SerializationUtilities.AddMessage Method

Definition

Overloads

AddMessage(SerializationContext, SerializationMessageKind, XmlException, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

AddMessage(SerializationContext, SerializationMessageKind, String, IXmlLineInfo, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

AddMessage(SerializationContext, SerializationMessageKind, String, Int32, Int32, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

AddMessage(SerializationResult, String, SerializationMessageKind, String, Int32, Int32, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

AddMessage(SerializationContext, SerializationMessageKind, XmlException, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

public:
 static void AddMessage(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::SerializationMessageKind kind, System::Xml::XmlException ^ xmlException, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ additionalProperties);
public static void AddMessage (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.SerializationMessageKind kind, System.Xml.XmlException xmlException, params System.Collections.Generic.KeyValuePair<string,object>[] additionalProperties);
static member AddMessage : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.SerializationMessageKind * System.Xml.XmlException * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Shared Sub AddMessage (serializationContext As SerializationContext, kind As SerializationMessageKind, xmlException As XmlException, ParamArray additionalProperties As KeyValuePair(Of String, Object)())

Parameters

serializationContext
SerializationContext

SerializationContext in which the new message will be stored.

kind
SerializationMessageKind

SerializationMessageKind of the message to be built.

xmlException
XmlException

XmlException that contains the error information (message, location, etc).

additionalProperties
KeyValuePair<String,Object>[]

Any additional properties to be stored in the message.

Applies to

AddMessage(SerializationContext, SerializationMessageKind, String, IXmlLineInfo, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

public:
 static void AddMessage(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::SerializationMessageKind kind, System::String ^ message, System::Xml::IXmlLineInfo ^ xmlLineInfo, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ additionalProperties);
public static void AddMessage (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.SerializationMessageKind kind, string message, System.Xml.IXmlLineInfo xmlLineInfo, params System.Collections.Generic.KeyValuePair<string,object>[] additionalProperties);
static member AddMessage : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.SerializationMessageKind * string * System.Xml.IXmlLineInfo * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Shared Sub AddMessage (serializationContext As SerializationContext, kind As SerializationMessageKind, message As String, xmlLineInfo As IXmlLineInfo, ParamArray additionalProperties As KeyValuePair(Of String, Object)())

Parameters

serializationContext
SerializationContext

SerializationContext in which the new message will be stored.

kind
SerializationMessageKind

SerializationMessageKind of the message to be built.

message
String

Message text.

xmlLineInfo
IXmlLineInfo

IXmlLineInfo that provides line and column of where the message is raised. This parameter can be null, which means the information is not available.

additionalProperties
KeyValuePair<String,Object>[]

Any additional properties to be stored in the message.

Applies to

AddMessage(SerializationContext, SerializationMessageKind, String, Int32, Int32, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

public:
 static void AddMessage(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::SerializationMessageKind kind, System::String ^ message, int line, int column, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ additionalProperties);
public static void AddMessage (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.SerializationMessageKind kind, string message, int line, int column, params System.Collections.Generic.KeyValuePair<string,object>[] additionalProperties);
static member AddMessage : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.SerializationMessageKind * string * int * int * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Shared Sub AddMessage (serializationContext As SerializationContext, kind As SerializationMessageKind, message As String, line As Integer, column As Integer, ParamArray additionalProperties As KeyValuePair(Of String, Object)())

Parameters

serializationContext
SerializationContext

SerializationContext in which the new message will be stored.

kind
SerializationMessageKind

SerializationMessageKind of the message to be built.

message
String

Message text.

line
Int32

Line number of where the message is raised.

column
Int32

Column number of where the message is raised.

additionalProperties
KeyValuePair<String,Object>[]

Any additional properties to be stored in the message.

Applies to

AddMessage(SerializationResult, String, SerializationMessageKind, String, Int32, Int32, KeyValuePair<String,Object>[])

Helper to build a SerializationMessage and store it into the given SerializationContext.

public:
 static void AddMessage(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, System::String ^ location, Microsoft::VisualStudio::Modeling::SerializationMessageKind kind, System::String ^ message, int line, int column, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ additionalProperties);
public static void AddMessage (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, string location, Microsoft.VisualStudio.Modeling.SerializationMessageKind kind, string message, int line, int column, params System.Collections.Generic.KeyValuePair<string,object>[] additionalProperties);
static member AddMessage : Microsoft.VisualStudio.Modeling.SerializationResult * string * Microsoft.VisualStudio.Modeling.SerializationMessageKind * string * int * int * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Shared Sub AddMessage (serializationResult As SerializationResult, location As String, kind As SerializationMessageKind, message As String, line As Integer, column As Integer, ParamArray additionalProperties As KeyValuePair(Of String, Object)())

Parameters

serializationResult
SerializationResult

SerializationResult in which the new message will be stored.

location
String

Location of where the message is generated.

kind
SerializationMessageKind

SerializationMessageKind of the message to be built.

message
String

Message text.

line
Int32

Line number of where the message is raised.

column
Int32

Column number of where the message is raised.

additionalProperties
KeyValuePair<String,Object>[]

Any additional properties to be stored in the message.

Applies to