Click or drag to resize

ISharingLifetimeScopeTryGetSharedInstance Method (Guid, Object)

Try to retrieve a shared instance based on a GUID key.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
bool TryGetSharedInstance(
	Guid id,
	out Object value
)

Parameters

id
Type: SystemGuid
Key to look up.
value
Type: SystemObject
The instance that has the specified key.

Return Value

Type: Boolean
true if the key was found; otherwise, false.
See Also