Partilhar via


DataConnection.GetLockedProviderObject Method

Definition

Overloads

GetLockedProviderObject()

Retrieves the underlying data provider object, if any, which supports the current data connection.

GetLockedProviderObject(Int32)

Retrieves the underlying data provider object, if any, which supports the current data connection.

GetLockedProviderObject()

Retrieves the underlying data provider object, if any, which supports the current data connection.

public:
 System::Object ^ GetLockedProviderObject();
public object GetLockedProviderObject ();
member this.GetLockedProviderObject : unit -> obj
Public Function GetLockedProviderObject () As Object

Returns

Returns a GetLockedProviderObject(Int32) object instance, if any, which supports the current data connection.

Applies to

GetLockedProviderObject(Int32)

Retrieves the underlying data provider object, if any, which supports the current data connection.

public:
 abstract System::Object ^ GetLockedProviderObject(int lockTimeout);
public abstract object GetLockedProviderObject (int lockTimeout);
abstract member GetLockedProviderObject : int -> obj
Public MustOverride Function GetLockedProviderObject (lockTimeout As Integer) As Object

Parameters

lockTimeout
Int32

The amount of time, in seconds, to wait on locking the connection before returning.

Returns

Returns a GetLockedProviderObject object instance, if any, that supports the current data connection, or returns null if the lock timeout was reached and the provider object could not be locked.

Exceptions

This object is an exclusive access proxy that no longer has exclusive access.

Applies to