Partager via


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

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

See Also

Reference

DirectiveProcessorException Class

DirectiveProcessorException Overload

Microsoft.VisualStudio.TextTemplating Namespace

SerializationInfo

StreamingContext

ArgumentNullException

SerializationException

HResult

Other Resources

Binary Serialization