Export (0) Print
Expand All

ServiceNameCollection.Merge Method (IEnumerable)

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

Namespace:  System.Security.Authentication.ExtendedProtection
Assembly:  System (in System.dll)

public ServiceNameCollection Merge(
	IEnumerable serviceNames
)

Parameters

serviceNames
Type: System.Collections.IEnumerable

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

Return Value

Type: System.Security.Authentication.ExtendedProtection.ServiceNameCollection
A new ServiceNameCollection instance that contains the union of the existing ServiceNameCollection instance merged with the specified values.

ExceptionCondition
ArgumentNullException

serviceNames is null.

ArgumentException

serviceNames is empty.

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft