Search Results for

    Show / Hide Table of Contents

    Class MySqlAttributeCollection

    Represents a collection of query attributes relevant to a MySqlCommand.

    Inheritance
    System.Object
    MySqlAttributeCollection
    Namespace: MySql.Data.MySqlClient
    Assembly: MySql.Data.dll
    Version: 9.3.0
    Syntax
    public class MySqlAttributeCollection

    Properties

    Count

    Gets the number of MySqlAttribute objects in the collection.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[Int32]

    Gets the MySqlAttribute at the specified index.

    Declaration
    public MySqlAttribute this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    MySqlAttribute

    Methods

    Clear()

    Removes all items from the collection.

    Declaration
    public void Clear()

    GetEnumerator()

    Returns an enumerator that iterates through the MySqlAttributeCollection.

    Declaration
    public IEnumerator<MySqlAttribute> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<MySqlAttribute>

    SetAttribute(MySqlAttribute)

    Adds the specified MySqlAttribute object to the MySqlAttributeCollection.

    Declaration
    public MySqlAttribute SetAttribute(MySqlAttribute value)
    Parameters
    Type Name Description
    MySqlAttribute value

    MySqlAttribute object to add.

    Returns
    Type Description
    MySqlAttribute

    SetAttribute(String, Object)

    Adds a query attribute and its value.

    Declaration
    public MySqlAttribute SetAttribute(string attributeName, object value)
    Parameters
    Type Name Description
    System.String attributeName

    Name of the query attribute.

    System.Object value

    Value of the query attribute.

    Returns
    Type Description
    MySqlAttribute
    In This Article
    • Properties
      • Count
      • Item[Int32]
    • Methods
      • Clear()
      • GetEnumerator()
      • SetAttribute(MySqlAttribute)
      • SetAttribute(String, Object)
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.