IConnection.CreateStruct(String, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 <code>Struct</code> 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 <code>Struct.getSQLTypeName</code>.
- 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
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.