Initializes a new instance of the DirectiveProcessorException class with serialized data, for use in remoting scenarios.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating (in Microsoft.VisualStudio.TextTemplating.dll)
Syntax
'宣言
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'使用
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New DirectiveProcessorException(info, context)
protected DirectiveProcessorException(
SerializationInfo info,
StreamingContext context
)
protected:
DirectiveProcessorException(
SerializationInfo^ info,
StreamingContext context
)
protected function DirectiveProcessorException(
info : SerializationInfo,
context : StreamingContext
)
Parameters
info
Type: System.Runtime.Serialization.SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
Type: System.Runtime.Serialization.StreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The info parameter is a null reference (Nothing in Visual Basic). |
| SerializationException | The class name is a null reference (Nothing in Visual Basic) or HResult is zero (0). |
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see Binary Serialization.
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.
See Also
Concepts
Reference
DirectiveProcessorException Class
DirectiveProcessorException Members
DirectiveProcessorException Overload