ModelingToolboxItem Constructor (SerializationInfo, StreamingContext)

Initializes a new instance of the ModelingToolboxItem class from serialized data.

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

Syntax

声明
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
protected ModelingToolboxItem(
    SerializationInfo info,
    StreamingContext context
)
protected:
ModelingToolboxItem(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> ModelingToolboxItem
protected function ModelingToolboxItem(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

This constructor uses the ToolboxItem.Deserialize and SerializationInfo.GetValue methods to retrieve the information with which to create the new toolbox item.

.NET Framework Security

See Also

Reference

ModelingToolboxItem Class

ModelingToolboxItem Overload

Microsoft.VisualStudio.Modeling.Design Namespace