UdtTypeName Property

SqlParameter.UdtTypeName Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a string that represents a user-defined type as a parameter.

Namespace: System.Data.SqlClient
Assembly: System.Data (in system.data.dll)

public string UdtTypeName { get; set; 
/** @property */
public String get_UdtTypeName ()

/** @property */
public void set_UdtTypeName (String value)

public function get UdtTypeName () : String

public function set UdtTypeName (value : String)

Property Value

A string that represents the fully qualified name of a user-defined type.

The code in this example creates a SqlParameter object to insert data into a user-defined type column in a table. The UdtTypeName specifies the fully qualified name of the user-defined type column in the TestPoint table.

private static void AddSqlParameter(SqlCommand command,
    string paramValue)
{
    SqlParameter parameter = new SqlParameter(
        "@Point", SqlDbType.Udt);
    parameter.SqlDbType = SqlDbType.Udt;
    parameter.Value = paramValue;

    command.Parameters.Add(parameter);


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2016 Microsoft