HierarchyIdException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the HierarchyIdException class with serialized data.
Espacio de nombres: Microsoft.SqlServer.Types
Ensamblado: Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)
Sintaxis
'Declaración
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Uso
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New HierarchyIdException(info, context)
protected HierarchyIdException(
SerializationInfo info,
StreamingContext context
)
protected:
HierarchyIdException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> HierarchyIdException
protected function HierarchyIdException(
info : SerializationInfo,
context : StreamingContext
)
Parámetros
- info
Tipo: System.Runtime.Serialization.SerializationInfo
An object that contains the serialized object data about the exception that is thrown.
- context
Tipo: System.Runtime.Serialization.StreamingContext
An object that contains the contextual information about the source or destination
Comentarios
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.