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
)
Function TryGetSharedInstance (
id As Guid,
<OutAttribute> ByRef value As Object
) As Boolean
Parameters
- id
- Type: SystemGuid
Key to look up. - value
- Type: SystemObject
The instance that has the specified key.
Return Value
Type:
Booleantrue if the key was found; otherwise,
false.
See Also