다음을 통해 공유


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
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

  • xmlException
    Type: System.Xml.XmlException
    An XML exception that contains error information to associate with the message.

.NET Framework Security

See Also

Reference

SerializationUtilities Class

AddMessage Overload

Microsoft.VisualStudio.Modeling Namespace