Partilhar via


ModelingToolboxItem.Serialize Method

Saves the state of the toolbox item to the specified serialization information object.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Protected Overrides Sub Serialize ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
protected override void Serialize(
    SerializationInfo info,
    StreamingContext context
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
protected:
virtual void Serialize(
    SerializationInfo^ info, 
    StreamingContext context
) override
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")>]
abstract Serialize : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")>]
override Serialize : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
protected override function Serialize(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

info is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ModelingToolboxItem Class

Microsoft.VisualStudio.Modeling.Design Namespace

Deserialize