다음을 통해 공유


DataConnection.GetExclusiveAccessProxy(Int32) Method

Definition

Retrieves a proxy instance that allows the caller exclusive access to the data connection.

public:
 abstract Microsoft::VisualStudio::Data::DataConnection ^ GetExclusiveAccessProxy(int lockTimeout);
public abstract Microsoft.VisualStudio.Data.DataConnection GetExclusiveAccessProxy (int lockTimeout);
abstract member GetExclusiveAccessProxy : int -> Microsoft.VisualStudio.Data.DataConnection
Public MustOverride Function GetExclusiveAccessProxy (lockTimeout As Integer) As DataConnection

Parameters

lockTimeout
Int32

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

Returns

Returns a proxy DataConnection object instance that allows the caller exclusive access to the connection, or returns null if the lock timeout was reached and the connection could not be locked.

Exceptions

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

Applies to