AxHost.State Constructors

Definition

Initializes a new instance of the AxHost.State class.

Overloads

AxHost.State(SerializationInfo, StreamingContext)

Initializes a new instance of the AxHost.State class for deserializing a state.

AxHost.State(Stream, Int32, Boolean, String)

Initializes a new instance of the AxHost.State class for serializing a state.

AxHost.State(SerializationInfo, StreamingContext)

Source:
AxHost.State.cs
Source:
AxHost.State.cs
Source:
AxHost.State.cs

Initializes a new instance of the AxHost.State class for deserializing a state.

C#
protected State(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

AxHost.State(Stream, Int32, Boolean, String)

Source:
AxHost.State.cs
Source:
AxHost.State.cs
Source:
AxHost.State.cs

Initializes a new instance of the AxHost.State class for serializing a state.

C#
public State(System.IO.Stream ms, int storageType, bool manualUpdate, string licKey);
C#
public State(System.IO.Stream ms, int storageType, bool manualUpdate, string? licKey);

Parameters

ms
Stream

A Stream in which the state is stored.

storageType
Int32

An Int32 indicating the storage type.

manualUpdate
Boolean

true for manual updates; otherwise, false.

licKey
String

The license key of the control.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10