ServiceNameCollection Constructor (ICollection^)
.NET Framework (current version)
Initializes a new read-only instance of the ServiceNameCollection class based on an existing ICollection.
Assembly: System (in System.dll)
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
Available since 2.0
Show: