ServiceNameCollection.Merge Method
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.
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. |
- 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
.NET 9 e altre versioni
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- 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
.NET 9 e altre versioni
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: