Initializes a new instance of the ModelingException class with serialized data.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'使用
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New ModelingException(info, context)
protected ModelingException(
SerializationInfo info,
StreamingContext context
)
protected:
ModelingException(
SerializationInfo^ info,
StreamingContext context
)
protected function ModelingException(
info : SerializationInfo,
context : StreamingContext
)
Parameters
info
Type: System.Runtime.Serialization.SerializationInfoThe object that holds the serialized object data.
context
Type: System.Runtime.Serialization.StreamingContextThe contextual information about the source or the destination.
Permissions
- 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.