ServiceNameCollection.Merge Method

Definition

Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

Overloads

Merge(IEnumerable)

Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

Merge(String)

Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

Merge(IEnumerable)

Source:
ServiceNameCollection.cs
Source:
ServiceNameCollection.cs
Source:
ServiceNameCollection.cs

Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

public System.Security.Authentication.ExtendedProtection.ServiceNameCollection Merge (System.Collections.IEnumerable serviceNames);

Parameters

serviceNames
IEnumerable

An instance of the IEnumerable class that contains the specified values of service names to be merged.

Returns

A new ServiceNameCollection instance that contains the union of the existing ServiceNameCollection instance merged with the specified values.

Exceptions

serviceNames is null.

serviceNames is empty.

Remarks

The ServiceNameCollection class that is initialized contains the specified values passed in the items parameter.

Applies to

.NET 9 e altre versioni
Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 2.0, 2.1

Merge(String)

Source:
ServiceNameCollection.cs
Source:
ServiceNameCollection.cs
Source:
ServiceNameCollection.cs

Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

public System.Security.Authentication.ExtendedProtection.ServiceNameCollection Merge (string serviceName);

Parameters

serviceName
String

A string that contains the specified values of service names to be used to initialize the class.

Returns

A new ServiceNameCollection instance that contains the union of the existing ServiceNameCollection instance merged with the specified values.

Exceptions

serviceNames is null.

serviceNames is empty.

Remarks

The ServiceNameCollection class that is initialized contains the specified values passed in the items parameter.

Applies to

.NET 9 e altre versioni
Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 2.0, 2.1