Method IsPayloadBufferLocked
IsPayloadBufferLocked(PayloadHandle)
Tests if the specified Payload buffer is locked and returns the number of individual locks.
Declaration
public bool IsPayloadBufferLocked(PayloadHandle handle)
Parameters
| Type | Name | Description |
|---|---|---|
| PayloadHandle | handle | A valid PayloadHandle value for the Payload buffer to test. |
Returns
| Type | Description |
|---|---|
| bool | True if Payload buffer has at least 1 lock and false otherwise. |
Remarks
IsPayloadBufferLocked(PayloadHandle, out int)
Tests if the specified Payload buffer is locked and returns the number of individual locks.
Declaration
public bool IsPayloadBufferLocked(PayloadHandle handle, out int numLockContexts)
Parameters
| Type | Name | Description |
|---|---|---|
| PayloadHandle | handle | A valid PayloadHandle value for the Payload buffer to test. |
| int | numLockContexts | Number of active locks on this Payload buffer. |
Returns
| Type | Description |
|---|---|
| bool | True if Payload buffer has at least 1 lock and false otherwise. |