--- title: "unwrap Method (SQLServerConnectionPoolDataSource) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual ms.assetid: f5c9b734-2096-4ae4-a284-6b4d1b4a00d4 author: David-Engel ms.author: v-daenge --- # unwrap Method (SQLServerConnectionPoolDataSource) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Returns an object that implements the specified interface to allow access to the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)]-specific methods. ## Syntax ``` public T unwrap(Class iface) ``` #### Parameters *iface* A class of type **T** defining an interface. ## Return Value An object that implements the specified interface. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks The [unwrap](../../../connect/jdbc/reference/unwrap-method-sqlserverconnectionpooldatasource.md) method is defined by the java.sql.Wrapper interface, which is introduced in the JDBC 4.0 Spec. Applications might need to access extensions to the JDBC API that are specific to the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)]. The unwrap method supports unwrapping to public classes that this object extends, if the classes expose vendor extensions. The [SQLServerConnectionPoolDataSource](../../../connect/jdbc/reference/sqlserverconnectionpooldatasource-class.md) class extends the [SQLServerDataSource](../../../connect/jdbc/reference/sqlserverdatasource-class.md) class. When this method is called, the object unwraps to the [SQLServerDataSource](../../../connect/jdbc/reference/sqlserverdatasource-class.md) class and the [SQLServerConnectionPoolDataSource](../../../connect/jdbc/reference/sqlserverconnectionpooldatasource-class.md) class. For more information, see [Wrappers and Interfaces](../../../connect/jdbc/wrappers-and-interfaces.md). ## See Also [SQLServerConnectionPoolDataSource Methods](../../../connect/jdbc/reference/sqlserverconnectionpooldatasource-methods.md) [SQLServerConnectionPoolDataSource Members](../../../connect/jdbc/reference/sqlserverconnectionpooldatasource-members.md) [SQLServerConnectionPoolDataSource Class](../../../connect/jdbc/reference/sqlserverconnectionpooldatasource-class.md)