This documentation is archived and is not being maintained.

ServiceNameCollection.Merge Method (String)

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
)

Parameters

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.

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

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: