Click or drag to resize
ServiceResolve Method (Type)
Returns an instance of service as registered within the system.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 11.0.0
Syntax
C#
public static Object Resolve(
	Type service
)

Parameters

service
Type: SystemType
Service type to be resolved.

Return Value

Type: Object
Returns an instance of service.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when service is null.
ServiceResolutionException Thrown when resolution of service fails. This typically occurs when no implementing type for service is registered or the implementing type has dependencies which cannot be satisfied.
See Also