C# Class System.Security.Authentication.ExtendedProtection.ServiceNameCollection

Inheritance: System.Collections.ReadOnlyCollectionBase
Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Contains ( string searchServiceName ) : bool
Merge ( IEnumerable serviceNames ) : ServiceNameCollection
Merge ( string serviceName ) : ServiceNameCollection
Merge ( System serviceNames ) : System.Security.Authentication.ExtendedProtection.ServiceNameCollection
Merge ( string serviceName ) : System.Security.Authentication.ExtendedProtection.ServiceNameCollection
ServiceNameCollection ( System items )
ServiceNameCollection ( ICollection items ) : System.Collections

Private Methods

Method Description
AddIfNew ( IEnumerable serviceNames, bool expectStrings ) : void

Normalize, check for duplicates, and add each unique value.

AddIfNew ( IList serviceNames ) : void

Normalize, check for duplicates, and add each unique value.

AddIfNew ( List serviceNames ) : void

Normalize, check for duplicates, and add each unique value.

AddIfNew ( string serviceName ) : void

Normalize, check for duplicates, and add if the value is unique.

GetCountOrOne ( IEnumerable collection ) : int

Gets the collection Count, if available, otherwise 1.

NormalizeServiceName ( string inputServiceName ) : string
ServiceNameCollection ( IList list, IEnumerable serviceNames ) : System.Collections

Merges list and serviceNames into a new collection.

ServiceNameCollection ( IList list, int additionalCapacity ) : System.Collections
ServiceNameCollection ( IList list, string serviceName ) : System.Collections

Merges list and serviceName into a new collection.

Method Details

Contains() public method

public Contains ( string searchServiceName ) : bool
searchServiceName string
return bool

Merge() public method

public Merge ( IEnumerable serviceNames ) : ServiceNameCollection
serviceNames IEnumerable
return ServiceNameCollection

Merge() public method

public Merge ( string serviceName ) : ServiceNameCollection
serviceName string
return ServiceNameCollection

Merge() public method

public Merge ( System serviceNames ) : System.Security.Authentication.ExtendedProtection.ServiceNameCollection
serviceNames System
return System.Security.Authentication.ExtendedProtection.ServiceNameCollection

Merge() public method

public Merge ( string serviceName ) : System.Security.Authentication.ExtendedProtection.ServiceNameCollection
serviceName string
return System.Security.Authentication.ExtendedProtection.ServiceNameCollection

ServiceNameCollection() public method

public ServiceNameCollection ( System items )
items System

ServiceNameCollection() public method

public ServiceNameCollection ( ICollection items ) : System.Collections
items ICollection
return System.Collections