Επεξεργασία

Κοινή χρήση μέσω


ServiceNameCollection.Merge Method

Definition

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

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.ServiceNameCollection
Public Function Merge (serviceNames As IEnumerable) As ServiceNameCollection

Parameters

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

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.ServiceNameCollection
Public Function Merge (serviceName As String) As ServiceNameCollection

Parameters

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

serviceNames is null.

serviceNames is empty.

Remarks

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

Applies to