語言

AxHost.State 建構函式

定義

初始化 AxHost.State 類別的新執行個體。

多載

名稱 Description
AxHost.State(SerializationInfo, StreamingContext)

初始化該類別的新實例 AxHost.State 以反序列化狀態。

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

初始化該類別的新實例 AxHost.State 以序列化狀態。

AxHost.State(SerializationInfo, StreamingContext)

來源:
AxHost.State.cs
來源:
AxHost.State.cs
來源:
AxHost.State.cs
來源:
AxHost.State.cs
來源:
AxHost.State.cs

初始化該類別的新實例 AxHost.State 以反序列化狀態。

protected:
 State(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected State(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Forms.AxHost.State : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Forms.AxHost.State
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

備註

Important

使用不受信任的資料呼叫此方法存在安全風險。 只有在受信任的資料時才會呼叫此方法。 如需詳細資訊,請參閱 驗證所有輸入。

適用於

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

來源:
AxHost.State.cs
來源:
AxHost.State.cs
來源:
AxHost.State.cs
來源:
AxHost.State.cs
來源:
AxHost.State.cs

初始化該類別的新實例 AxHost.State 以序列化狀態。

public:
 State(System::IO::Stream ^ ms, int storageType, bool manualUpdate, System::String ^ licKey);
public State(System.IO.Stream ms, int storageType, bool manualUpdate, string licKey);
public State(System.IO.Stream ms, int storageType, bool manualUpdate, string? licKey);
new System.Windows.Forms.AxHost.State : System.IO.Stream * int * bool * string -> System.Windows.Forms.AxHost.State
Public Sub New (ms As Stream, storageType As Integer, manualUpdate As Boolean, licKey As String)

參數

ms
Stream

Stream一個儲存狀態的空間。

storageType
Int32

A Int32 表示儲存類型。

manualUpdate
Boolean

true用於手動更新;否則,。 false

licKey
String

控制的授權金鑰。

備註

Important

使用不受信任的資料呼叫此方法存在安全風險。 只有在受信任的資料時才會呼叫此方法。 如需詳細資訊,請參閱 驗證所有輸入。

適用於