ServiceNameCollection.Merge Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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(
	string serviceName


Type: System.String

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

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.

Exception Condition

serviceNames is null.


serviceNames is empty.

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

.NET Framework
Available since 2.0
Return to top