Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Authentication.​ExtendedProtection.​ServiceNameCollection
Assembly: System.Net.Security
Inheritance: object → Collections.​ReadOnlyCollectionBase → ServiceNameCollection
Implemented Interfaces
- Collections.​ICollection (Inherits: IEnumerable) Implemented by: ReadOnlyCollectionBase
The <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> class is a read-only collection of service principal names.
Properties
public
int
Count
protected
Collections.​ArrayList
InnerList
Methods
public
bool
Contains​(string searchServiceName)
Returns a value indicating whether the specified string occurs within this <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> instance.
Returns Returns <see cref="T:System.Boolean" /> .
<see langword="true" /> if the <paramref name="searchServiceName" /> parameter occurs within this <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> instance; otherwise, <see langword="false" /> .
searchServiceName
The string to seek.
public
ServiceNameCollection
Merge​(Collections.​IEnumerable serviceNames)
Merges the current <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> with the specified values to create a new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> containing the union.
Returns A new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> instance that contains the union of the existing <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> instance merged with the specified values.
serviceNames
An instance of the <see cref="T:System.Collections.IEnumerable" /> class that contains the specified values of service names to be merged.
public
ServiceNameCollection
Merge​(string serviceName)
Merges the current <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> with the specified values to create a new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> containing the union.
Returns A new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> instance that contains the union of the existing <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection" /> instance merged with the specified values.
serviceName
A string that contains the specified values of service names to be used to initialize the class.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object