ServiceNameCollection.Merge Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.
Overloads
| Merge(IEnumerable) | Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union. | 
| Merge(String) | Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union. | 
Merge(IEnumerable)
- Source:
- ServiceNameCollection.cs
- Source:
- ServiceNameCollection.cs
- Source:
- ServiceNameCollection.cs
- Source:
- ServiceNameCollection.cs
Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.
public:
 System::Security::Authentication::ExtendedProtection::ServiceNameCollection ^ Merge(System::Collections::IEnumerable ^ serviceNames);public System.Security.Authentication.ExtendedProtection.ServiceNameCollection Merge(System.Collections.IEnumerable serviceNames);member this.Merge : System.Collections.IEnumerable -> System.Security.Authentication.ExtendedProtection.ServiceNameCollectionPublic Function Merge (serviceNames As IEnumerable) As ServiceNameCollectionParameters
- serviceNames
- IEnumerable
An instance of the IEnumerable class that contains the specified values of service names to be merged.
Returns
A new ServiceNameCollection instance that contains the union of the existing ServiceNameCollection instance merged with the specified values.
Exceptions
serviceNames is null.
serviceNames is empty.
Remarks
The ServiceNameCollection class that is initialized contains the specified values passed in the items parameter.
Applies to
Merge(String)
- Source:
- ServiceNameCollection.cs
- Source:
- ServiceNameCollection.cs
- Source:
- ServiceNameCollection.cs
- Source:
- ServiceNameCollection.cs
Merges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.
public:
 System::Security::Authentication::ExtendedProtection::ServiceNameCollection ^ Merge(System::String ^ serviceName);public System.Security.Authentication.ExtendedProtection.ServiceNameCollection Merge(string serviceName);member this.Merge : string -> System.Security.Authentication.ExtendedProtection.ServiceNameCollectionPublic Function Merge (serviceName As String) As ServiceNameCollectionParameters
- serviceName
- String
A string that contains the specified values of service names to be used to initialize the class.
Returns
A new ServiceNameCollection instance that contains the union of the existing ServiceNameCollection instance merged with the specified values.
Exceptions
serviceName is null.
serviceName is empty.
Remarks
The ServiceNameCollection class that is initialized contains the specified values passed in the items parameter.