SerializationUtilities.AddMessage Method (SerializationResult, String, SerializationMessageKind, String, Int32, Int32, array<KeyValuePair<String, Object> )
Helper to build a SerializationMessage and store it into the given SerializationContext.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
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)() _
)
public static void AddMessage(
SerializationResult serializationResult,
string location,
SerializationMessageKind kind,
string message,
int line,
int column,
params KeyValuePair<string, Object>[] additionalProperties
)
public:
static void AddMessage(
SerializationResult^ serializationResult,
String^ location,
SerializationMessageKind kind,
String^ message,
int line,
int column,
... array<KeyValuePair<String^, Object^>>^ additionalProperties
)
static member AddMessage :
serializationResult:SerializationResult *
location:string *
kind:SerializationMessageKind *
message:string *
line:int *
column:int *
additionalProperties:KeyValuePair<string, Object>[] -> unit
public static function AddMessage(
serializationResult : SerializationResult,
location : String,
kind : SerializationMessageKind,
message : String,
line : int,
column : int,
... additionalProperties : KeyValuePair<String, Object>[]
)
Parameters
serializationResult
Type: Microsoft.VisualStudio.Modeling.SerializationResultThe serialization result in which the message is stored.
location
Type: System.StringThe location where the message is raised.
kind
Type: Microsoft.VisualStudio.Modeling.SerializationMessageKindThe type of message.
message
Type: System.StringThe contents of the message.
line
Type: System.Int32The line from where the message is raised.
column
Type: System.Int32The column from where the message is raised.
additionalProperties
Type: array<System.Collections.Generic.KeyValuePair<String, Object>[]Any additional properties to store in the message.
.NET Framework Security
- 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.