Click or drag to resize

LifetimeScopeTryGetSharedInstance Method (Guid, Object)

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

Namespace:  Autofac.Core.Lifetime
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public 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.

Implements

ISharingLifetimeScopeTryGetSharedInstance(Guid, Object)
See Also