DomainXmlSerializerDirectory.AddBehavior Method
Adds a serialization behavior to this dictionary.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Sub AddBehavior ( _
serializationBehavior As DomainXmlSerializationBehavior _
)
public void AddBehavior(
DomainXmlSerializationBehavior serializationBehavior
)
public:
void AddBehavior(
DomainXmlSerializationBehavior^ serializationBehavior
)
member AddBehavior :
serializationBehavior:DomainXmlSerializationBehavior -> unit
public function AddBehavior(
serializationBehavior : DomainXmlSerializationBehavior
)
Parameters
serializationBehavior
Type: Microsoft.VisualStudio.Modeling.DomainXmlSerializationBehaviorA serialization behavior from which the mapping entries are added.
Remarks
Adding a serializer behavior means adding all mapping entries defined in the behavior, which maps a domain class ID to a corresponding serializer.
.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.