AxHost.State 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 AxHost.State 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| AxHost.State(SerializationInfo, StreamingContext) |
初始化类的新实例 AxHost.State 以反序列化状态。 |
| AxHost.State(Stream, Int32, Boolean, String) |
初始化类的新实例 AxHost.State 以序列化状态。 |
AxHost.State(SerializationInfo, StreamingContext)
- Source:
- AxHost.State.cs
- Source:
- AxHost.State.cs
- Source:
- AxHost.State.cs
- Source:
- AxHost.State.cs
- Source:
- 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)
参数
- info
- SerializationInfo
一个 SerializationInfo 值。
- context
- StreamingContext
一个 StreamingContext 值。
注解
Important
使用不受信任的数据调用此方法是一种安全风险。 仅使用受信任的数据调用此方法。 有关详细信息,请参阅验证所有输入。
适用于
AxHost.State(Stream, Int32, Boolean, String)
- Source:
- AxHost.State.cs
- Source:
- AxHost.State.cs
- Source:
- AxHost.State.cs
- Source:
- AxHost.State.cs
- Source:
- 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)
参数
- manualUpdate
- Boolean
true 用于手动更新;否则,为 false.
- licKey
- String
控件的许可证密钥。
注解
Important
使用不受信任的数据调用此方法是一种安全风险。 仅使用受信任的数据调用此方法。 有关详细信息,请参阅验证所有输入。