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
- info
Type: System.Runtime.Serialization.SerializationInfo
The serialization information store.
- context
Type: System.Runtime.Serialization.StreamingContext
The stream context.
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
- 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.