DirectiveProcessorException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the DirectiveProcessorException class with serialized data, for use in remoting scenarios.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)
Syntax
'Declaration
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
protected DirectiveProcessorException(
SerializationInfo info,
StreamingContext context
)
protected:
DirectiveProcessorException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> DirectiveProcessorException
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 nulla null reference (Nothing in Visual Basic). |
SerializationException | The class name is nulla 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.
.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.
See Also
Reference
DirectiveProcessorException Class
DirectiveProcessorException Overload
Microsoft.VisualStudio.TextTemplating Namespace