AddressCollection Structure

Wraps the host.Addresses list.

Namespace:  Microsoft.Owin.BuilderProperties
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

'Declaration
Public Structure AddressCollection _
    Implements IEnumerable(Of Address), IEnumerable
'Usage
Dim instance As AddressCollection
public struct AddressCollection : IEnumerable<Address>, 
    IEnumerable
public value class AddressCollection : IEnumerable<Address>, 
    IEnumerable
[<SealedAttribute>]
type AddressCollection =  
    struct 
        interface IEnumerable<Address>
        interface IEnumerable 
    end
JScript suports the use of structures, but not the declaration of new ones.

The AddressCollection type exposes the following members.

Constructors

  Name Description
Public method AddressCollection Initializes a new instance of the AddressCollection class.

Top

Properties

  Name Description
Public property Count Gets the number of elements in the collection.
Public property Item Gets the item with the specified index from the collection.
Public property List Gets the underlying address list.

Top

Methods

  Name Description
Public method Add Adds the specified address to the collection.
Public methodStatic member Create Creates a new instance of AddressCollection with empty list.
Public method Equals(Object) Determines whether the current collection is equal to the specified object. (Overrides ValueType.Equals(Object).)
Public method Equals(AddressCollection) Determines whether the current collection is equal to the specified collection.
Public method GetEnumerator Gets the enumerator that iterates through the collection.
Public method GetHashCode Gets the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from ValueType.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the first collection is equal to the second collection.
Public operatorStatic member Inequality Determines whether the first collection is not equal to the second collection.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets the enumerator that iterates through the collection.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Owin.BuilderProperties Namespace