mscorlib(4.0.0.0) API with additions
ProtocolViolationException.cs
3 
4 namespace System.Net
5 {
8  [global::__DynamicallyInvokable]
10  {
12  [global::__DynamicallyInvokable]
14  {
15  }
16 
19  [global::__DynamicallyInvokable]
20  public ProtocolViolationException(string message)
21  : base(message)
22  {
23  }
24 
28  protected ProtocolViolationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
29  : base(serializationInfo, streamingContext)
30  {
31  }
32 
36  [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter, SerializationFormatter = true)]
37  void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
38  {
39  base.GetObjectData(serializationInfo, streamingContext);
40  }
41 
45  [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
46  public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
47  {
48  base.GetObjectData(serializationInfo, streamingContext);
49  }
50  }
51 }
Describes a set of security permissions applied to code. This class cannot be inherited.
ProtocolViolationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Initializes a new instance of the T:System.Net.ProtocolViolationException class from the specified T:...
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
ProtocolViolationException()
Initializes a new instance of the T:System.Net.ProtocolViolationException class.
ProtocolViolationException(string message)
Initializes a new instance of the T:System.Net.ProtocolViolationException class with the specified me...
SecurityAction
Specifies the security actions that can be performed using declarative security.
The exception that is thrown when an error is made while using a network protocol.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
Populates a T:System.Runtime.Serialization.SerializationInfo with the data required to serialize the ...
Allows an object to control its own serialization and deserialization.
Definition: ISerializable.cs:8
Specifies that the class can be serialized.
The exception that is thrown when a method call is invalid for the object's current state.
SecurityPermissionFlag
Specifies access flags for the security permission object.
void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the ta...