Sage Modeling and Simulation Library

SingleKeyAccessRegulator..::..CanAcquire Method

Returns true if the given subject can be acquired using the presented key.

Namespace:  Highpoint.Sage.Resources
Assembly:  Sage4 (in Sage4.dll)

Syntax


public bool CanAcquire(
	Object subject,
	Object usingKey
)

Parameters

subject
Type: Object
The resource whose acquisition is being queried.
usingKey
Type: Object
The key that is to be presented by the prospective acquirer.

Return Value

True if the acquire will be allowed, false if not.