Share via


ServiceTypeList Class

Definition

Represents a list of service type.

public sealed class ServiceTypeList : System.Collections.Generic.ICollection<System.Fabric.Query.ServiceType>, System.Collections.Generic.IEnumerable<System.Fabric.Query.ServiceType>, System.Collections.Generic.IList<System.Fabric.Query.ServiceType>
type ServiceTypeList = class
    interface IList<ServiceType>
    interface ICollection<ServiceType>
    interface seq<ServiceType>
    interface IEnumerable
Public NotInheritable Class ServiceTypeList
Implements ICollection(Of ServiceType), IEnumerable(Of ServiceType), IList(Of ServiceType)
Inheritance
ServiceTypeList
Implements

Properties

Count

Gets or sets the number of elements in the ServiceTypeList.

IsReadOnly

Gets or sets whether ServiceTypeList is read-only.

Item[Int32]

Gets or sets the element at the specified index.

Methods

Add(ServiceType)

Adds an object to the end of the ServiceTypeList.

Clear()

Removes all elements from the ServiceTypeList.

Contains(ServiceType)

Determines whether an element is in the ServiceTypeList..

CopyTo(ServiceType[], Int32)

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

GetEnumerator()

Returns an enumerator for the entire ServiceTypeList..

IndexOf(ServiceType)

Searches for the specified ServiceType and returns the zero-based index of the first occurrence within the entire ServiceTypeList.

Insert(Int32, ServiceType)

Inserts an element into the ServiceTypeList at the specified index.

Remove(ServiceType)

Removes the first occurrence of a specific object from the ServiceTypeList..

RemoveAt(Int32)

Removes the element at the specified index of the ServiceTypeList..

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns the enumerator for the ServiceTypeList..

Extension Methods

ToCommaSeparatedString<T>(IEnumerable<T>)

Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections.

Applies to