ManagementNamedValueCollection 构造函数

定义

初始化 ManagementNamedValueCollection 类的新实例。

重载

ManagementNamedValueCollection()

初始化 ManagementNamedValueCollection 类的空的新实例。 这是无参数构造函数。

ManagementNamedValueCollection(SerializationInfo, StreamingContext)
已过时.

初始化 ManagementNamedValueCollection 类的新实例,该实例可序列化且使用指定的 SerializationInfoStreamingContext

ManagementNamedValueCollection()

Source:
ManagementNamedValueCollection.cs
Source:
ManagementNamedValueCollection.cs
Source:
ManagementNamedValueCollection.cs

初始化 ManagementNamedValueCollection 类的空的新实例。 这是无参数构造函数。

public:
 ManagementNamedValueCollection();
public ManagementNamedValueCollection ();
Public Sub New ()

注解

.NET Framework 安全性

对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码中的库

适用于

ManagementNamedValueCollection(SerializationInfo, StreamingContext)

Source:
ManagementNamedValueCollection.cs
Source:
ManagementNamedValueCollection.cs
Source:
ManagementNamedValueCollection.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

初始化 ManagementNamedValueCollection 类的新实例,该实例可序列化且使用指定的 SerializationInfoStreamingContext

protected:
 ManagementNamedValueCollection(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public:
 ManagementNamedValueCollection(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ManagementNamedValueCollection (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ManagementNamedValueCollection (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
public ManagementNamedValueCollection (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.ManagementNamedValueCollection : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.ManagementNamedValueCollection
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Management.ManagementNamedValueCollection : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.ManagementNamedValueCollection
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Public Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

要填充数据的 SerializationInfo

context
StreamingContext

此序列化的目标(请参阅 StreamingContext)。

属性

注解

.NET Framework 安全性

对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码中的库

适用于