SerializationUtilities.AddMessage Method (SerializationContext, SerializationMessageKind, XmlException, array<KeyValuePair<String, Object> )
Adds a message to a serialization context.
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 ( _
serializationContext As SerializationContext, _
kind As SerializationMessageKind, _
xmlException As XmlException, _
ParamArray additionalProperties As KeyValuePair(Of String, Object)() _
)
public static void AddMessage(
SerializationContext serializationContext,
SerializationMessageKind kind,
XmlException xmlException,
params KeyValuePair<string, Object>[] additionalProperties
)
public:
static void AddMessage(
SerializationContext^ serializationContext,
SerializationMessageKind kind,
XmlException^ xmlException,
... array<KeyValuePair<String^, Object^>>^ additionalProperties
)
static member AddMessage :
serializationContext:SerializationContext *
kind:SerializationMessageKind *
xmlException:XmlException *
additionalProperties:KeyValuePair<string, Object>[] -> unit
public static function AddMessage(
serializationContext : SerializationContext,
kind : SerializationMessageKind,
xmlException : XmlException,
... additionalProperties : KeyValuePair<String, Object>[]
)
Parameters
serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContextThe serialization context.
kind
Type: Microsoft.VisualStudio.Modeling.SerializationMessageKindThe type of message.
xmlException
Type: System.Xml.XmlExceptionAn XML exception that contains error information to associate with the message.
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.