Class
XmlPropertySettingCollection

A collection that stores XmlPropertySetting objects.

Definition

Constructors

XmlPropertySettingCollection()

Initializes a new instance of XmlPropertySettingCollection.

Declaration

cs-api-definition
public XmlPropertySettingCollection()

XmlPropertySettingCollection(XmlPropertySettingCollection)

Initializes a new instance of XmlPropertySettingCollection based on another XmlPropertySettingCollection.

Declaration

cs-api-definition
public XmlPropertySettingCollection(XmlPropertySettingCollection value)

Parameters

value

XmlPropertySettingCollection

A XmlPropertySettingCollection from which the contents are copied

XmlPropertySettingCollection(XmlPropertySetting[])

Initializes a new instance of XmlPropertySettingCollection containing any array of XmlPropertySetting objects.

Declaration

cs-api-definition
public XmlPropertySettingCollection(XmlPropertySetting[] value)

Parameters

value

XmlPropertySetting[]

A array of XmlPropertySetting objects with which to intialize the collection

Properties

this[int]

Represents the entry at the specified index of the XmlPropertySetting.

Declaration

cs-api-definition
public XmlPropertySetting this[int index] { get; set; }

Parameters

index

int

The zero-based index of the entry to locate in the collection.

Property Value

XmlPropertySetting

The entry at the specified index of the collection.

Exceptions

ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Add(XmlPropertySetting)

Adds a XmlPropertySetting with the specified value to the XmlPropertySettingCollection .

Declaration

cs-api-definition
public int Add(XmlPropertySetting value)

Parameters

value

XmlPropertySetting

The XmlPropertySetting to add.

Returns

int

The index at which the new element was inserted.

AddRange(XmlPropertySettingCollection)

Adds the contents of another XmlPropertySettingCollection to the end of the collection.

Declaration

cs-api-definition
public void AddRange(XmlPropertySettingCollection value)

Parameters

value

XmlPropertySettingCollection

A XmlPropertySettingCollection containing the objects to add to the collection.

AddRange(XmlPropertySetting[])

Copies the elements of an array to the end of the XmlPropertySettingCollection.

Declaration

cs-api-definition
public void AddRange(XmlPropertySetting[] value)

Parameters

value

XmlPropertySetting[]

An array of type XmlPropertySetting containing the objects to add to the collection.

Contains(XmlPropertySetting)

Gets a value indicating whether the XmlPropertySettingCollection contains the specified XmlPropertySetting.

Declaration

cs-api-definition
public bool Contains(XmlPropertySetting value)

Parameters

value

XmlPropertySetting

The XmlPropertySetting to locate.

Returns

bool

true if the XmlPropertySetting is contained in the collection; otherwise, false.

CopyTo(XmlPropertySetting[], int)

Copies the XmlPropertySettingCollection values to a one-dimensional Array instance at the specified index.

Declaration

cs-api-definition
public void CopyTo(XmlPropertySetting[] array, int index)

Parameters

array

XmlPropertySetting[]

The one-dimensional Array that is the destination of the values copied from XmlPropertySettingCollection .

index

int

The index in array where copying begins.

Exceptions

ArgumentException

array is multidimensional.

-or-

The number of elements in the XmlPropertySettingCollection is greater than the available space between index and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than array's lowbound.

GetEnumerator()

Returns an enumerator that can iterate through the XmlPropertySettingCollection .

Declaration

cs-api-definition
public XmlPropertySettingCollection.XmlPropertySettingEnumerator GetEnumerator()

Returns

XmlPropertySettingCollection.XmlPropertySettingEnumerator

None.

IndexOf(XmlPropertySetting)

Returns the index of a XmlPropertySetting in the XmlPropertySettingCollection .

Declaration

cs-api-definition
public int IndexOf(XmlPropertySetting value)

Parameters

value

XmlPropertySetting

The XmlPropertySetting to locate.

Returns

int

The index of the XmlPropertySetting of value in the XmlPropertySettingCollection, if found; otherwise, -1.

Insert(int, XmlPropertySetting)

Inserts a XmlPropertySetting into the XmlPropertySettingCollection at the specified index.

Declaration

cs-api-definition
public void Insert(int index, XmlPropertySetting value)

Parameters

index

int

The zero-based index where value should be inserted.

value

XmlPropertySetting

The XmlPropertySetting to insert.

Remove(XmlPropertySetting)

Removes a specific XmlPropertySetting from the XmlPropertySettingCollection .

Declaration

cs-api-definition
public void Remove(XmlPropertySetting value)

Parameters

value

XmlPropertySetting

The XmlPropertySetting to remove from the XmlPropertySettingCollection .

Exceptions

ArgumentException

value is not found in the Collection.