Condividi tramite


SerializationUtilities.AddMessage Method (SerializationContext, SerializationMessageKind, String, IXmlLineInfo, 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

'Dichiarazione
Public Shared Sub AddMessage ( _
    serializationContext As SerializationContext, _
    kind As SerializationMessageKind, _
    message As String, _
    xmlLineInfo As IXmlLineInfo, _
    ParamArray additionalProperties As KeyValuePair(Of String, Object)() _
)
public static void AddMessage(
    SerializationContext serializationContext,
    SerializationMessageKind kind,
    string message,
    IXmlLineInfo xmlLineInfo,
    params KeyValuePair<string, Object>[] additionalProperties
)
public:
static void AddMessage(
    SerializationContext^ serializationContext, 
    SerializationMessageKind kind, 
    String^ message, 
    IXmlLineInfo^ xmlLineInfo, 
    ... array<KeyValuePair<String^, Object^>>^ additionalProperties
)
static member AddMessage : 
        serializationContext:SerializationContext * 
        kind:SerializationMessageKind * 
        message:string * 
        xmlLineInfo:IXmlLineInfo * 
        additionalProperties:KeyValuePair<string, Object>[] -> unit 
public static function AddMessage(
    serializationContext : SerializationContext, 
    kind : SerializationMessageKind, 
    message : String, 
    xmlLineInfo : IXmlLineInfo, 
    ... additionalProperties : KeyValuePair<String, Object>[]
)

Parameters

  • xmlLineInfo
    Type: System.Xml.IXmlLineInfo
    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