ServiceNameCollection Constructor (ICollection)

 

Initializes a new read-only instance of the ServiceNameCollection class based on an existing ICollection.

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

public ServiceNameCollection(
	ICollection items
)

Parameters

items
Type: System.Collections.ICollection

An instance of the ICollection class that contains the specified values of service names to be used to initialize the class.

Exception Condition
ArgumentNullException

item is null.

ArgumentException

item 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
Show: