SerializationUtilities.AddMessage Method (SerializationContext, SerializationMessageKind, String, Int32, Int32, array<KeyValuePair<String, Object> )
Adds a message to a serialization context.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
‘선언
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)() _
)
public static void AddMessage(
SerializationContext serializationContext,
SerializationMessageKind kind,
string message,
int line,
int column,
params KeyValuePair<string, Object>[] additionalProperties
)
public:
static void AddMessage(
SerializationContext^ serializationContext,
SerializationMessageKind kind,
String^ message,
int line,
int column,
... array<KeyValuePair<String^, Object^>>^ additionalProperties
)
static member AddMessage :
serializationContext:SerializationContext *
kind:SerializationMessageKind *
message:string *
line:int *
column:int *
additionalProperties:KeyValuePair<string, Object>[] -> unit
public static function AddMessage(
serializationContext : SerializationContext,
kind : SerializationMessageKind,
message : String,
line : int,
column : int,
... additionalProperties : KeyValuePair<String, Object>[]
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
The serialization context.
- kind
Type: Microsoft.VisualStudio.Modeling.SerializationMessageKind
The type of message.
- message
Type: System.String
The contents of the message.
- line
Type: System.Int32
The line from where the message is raised.
- column
Type: System.Int32
The 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.