Search Results for

    Show / Hide Table of Contents

    Class MySqlAttribute

    Represents a query attribute to a MySqlCommand.

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

    Constructors

    MySqlAttribute()

    Initializes a new instance of the MySqlAttribute class.

    Declaration
    public MySqlAttribute()

    MySqlAttribute(String, Object)

    Initializes a new instance of the MySqlAttribute class with the attribute name and its value.

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

    Name of the attribute.

    System.Object attributeValue

    Value of the attribute.

    Properties

    AttributeName

    Name of the query attribute.

    Declaration
    public string AttributeName { get; set; }
    Property Value
    Type Description
    System.String

    MySqlDbType

    Gets or sets the MySqlDbType of the attribute.

    Declaration
    public MySqlDbType MySqlDbType { get; set; }
    Property Value
    Type Description
    MySqlDbType

    Value

    Value of the query attribute.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    Methods

    Clone()

    Clones this object.

    Declaration
    public MySqlAttribute Clone()
    Returns
    Type Description
    MySqlAttribute

    An object that is a clone of this object.

    Explicit Interface Implementations

    ICloneable.Clone()

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    System.Object

    Implements

    System.ICloneable
    In This Article
    • Constructors
      • MySqlAttribute()
      • MySqlAttribute(String, Object)
    • Properties
      • AttributeName
      • MySqlDbType
      • Value
    • Methods
      • Clone()
    • Explicit Interface Implementations
      • ICloneable.Clone()
    • Implements
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.