IConnection.CreateStruct(String, Object[]) Method

Definition

Factory method for creating Struct objects.

[Android.Runtime.Register("createStruct", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Struct;", "GetCreateStruct_Ljava_lang_String_arrayLjava_lang_Object_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IStruct? CreateStruct (string? typeName, Java.Lang.Object[]? attributes);
[<Android.Runtime.Register("createStruct", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Struct;", "GetCreateStruct_Ljava_lang_String_arrayLjava_lang_Object_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateStruct : string * Java.Lang.Object[] -> Java.Sql.IStruct

Parameters

typeName
String

the SQL type name of the SQL structured type that this Struct object maps to. The typeName is the name of a user-defined type that has been defined for this database. It is the value returned by Struct.getSQLTypeName.

attributes
Object[]

the attributes that populate the returned object

Returns

a Struct object that maps to the given SQL type and is populated with the given attributes

Attributes

Exceptions

if this connection is closed, or there's a problem creating the array.

Remarks

Factory method for creating Struct objects.

Added in 1.6.

Java documentation for java.sql.Connection.createStruct(java.lang.String, java.lang.Object[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to