Class MySqlAttributeCollection
Represents a collection of query attributes relevant to a My
Inheritance
System.Object
MySqlAttributeCollection
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public class MySqlAttributeCollection
Properties
Count
Gets the number of My
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Item[Int32]
Gets the My
Declaration
public MySqlAttribute this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
index |
Property Value
Type | Description |
---|---|
My |
Methods
Clear()
Removes all items from the collection.
Declaration
public void Clear()
GetEnumerator()
Returns an enumerator that iterates through the My
Declaration
public IEnumerator<MySqlAttribute> GetEnumerator()
Returns
Type | Description |
---|---|
System. |
SetAttribute(MySqlAttribute)
Adds the specified My
Declaration
public MySqlAttribute SetAttribute(MySqlAttribute value)
Parameters
Type | Name | Description |
---|---|---|
My |
value | My |
Returns
Type | Description |
---|---|
My |
SetAttribute(String, Object)
Adds a query attribute and its value.
Declaration
public MySqlAttribute SetAttribute(string attributeName, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
attributeName | Name of the query attribute. |
System. |
value | Value of the query attribute. |
Returns
Type | Description |
---|---|
My |