Edytuj

Udostępnij za pośrednictwem


ServiceNameCollection Class

Definition

The ServiceNameCollection class is a read-only collection of service principal names.

public ref class ServiceNameCollection : System::Collections::ReadOnlyCollectionBase
public ref class ServiceNameCollection : System::Collections::ICollection
public class ServiceNameCollection : System.Collections.ReadOnlyCollectionBase
public class ServiceNameCollection : System.Collections.ICollection
[System.Serializable]
public class ServiceNameCollection : System.Collections.ReadOnlyCollectionBase
type ServiceNameCollection = class
    inherit ReadOnlyCollectionBase
type ServiceNameCollection = class
    interface ICollection
    interface IEnumerable
[<System.Serializable>]
type ServiceNameCollection = class
    inherit ReadOnlyCollectionBase
Public Class ServiceNameCollection
Inherits ReadOnlyCollectionBase
Public Class ServiceNameCollection
Implements ICollection
Inheritance
ServiceNameCollection
Inheritance
ServiceNameCollection
Attributes
Implements

Remarks

The ServiceNameCollection class is used in an ExtendedProtectionPolicy when validating against a custom list of service provider names (SPNs).

Constructors

ServiceNameCollection(ICollection)

Initializes a new read-only instance of the ServiceNameCollection class based on an existing ICollection.

Properties

Count

Gets the number of elements contained in the ICollection.

Count

Gets the number of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
InnerList

Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)

Methods

Contains(String)

Returns a value indicating whether the specified string occurs within this ServiceNameCollection instance.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through a collection.

GetEnumerator()

Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

ICollection.CopyTo(Array, Int32)

Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from ReadOnlyCollectionBase)
ICollection.IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

ICollection.IsSynchronized

Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).

(Inherited from ReadOnlyCollectionBase)
ICollection.SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

ICollection.SyncRoot

Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.

(Inherited from ReadOnlyCollectionBase)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to