共用方式為


ManagementNamedValueCollection 建構函式

定義

初始化 ManagementNamedValueCollection 類別的新執行個體。

多載

ManagementNamedValueCollection()

初始化 ManagementNamedValueCollection 類別的新執行個體,這個執行個體是空的。 這是無參數建構函式。

ManagementNamedValueCollection(SerializationInfo, StreamingContext)
已淘汰.

初始化 ManagementNamedValueCollection 類別的新執行個體,這個執行個體可序列化,並使用指定的 SerializationInfoStreamingContext

ManagementNamedValueCollection()

來源:
ManagementNamedValueCollection.cs
來源:
ManagementNamedValueCollection.cs
來源:
ManagementNamedValueCollection.cs

初始化 ManagementNamedValueCollection 類別的新執行個體,這個執行個體是空的。 這是無參數建構函式。

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

備註

.NET Framework 安全性

完全信任立即呼叫者。 這個成員無法供部分信任的程式碼使用。 如需詳細資訊,請參閱 使用部分信任程式代碼的連結庫

適用於

ManagementNamedValueCollection(SerializationInfo, StreamingContext)

來源:
ManagementNamedValueCollection.cs
來源:
ManagementNamedValueCollection.cs
來源:
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 安全性

完全信任立即呼叫者。 這個成員無法供部分信任的程式碼使用。 如需詳細資訊,請參閱 使用部分信任程式代碼的連結庫

適用於