ProGet SDK Reference
Version:

InvalidPackageException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) Constructor

Initializes a new instance of the InvalidPackageException class.

Syntax

protected .ctor(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

context
Type: System.Runtime.Serialization.StreamingContext

The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Exceptions

System.ArgumentNullException

The info parameter is null (Nothing in Visual Basic).

System.Runtime.Serialization.SerializationException

The class name is null (Nothing in Visual Basic) or System.Exception.HResult is zero (0).