Click or drag to resize
IInfoBySiteAndNameProviderTInfo Interface

Declares a member for retrieval of info objects by their code name and site.

Use this interface when composing a custom provider interface. A custom provider interface can be associated with the provider using the ProviderInterfaceAttribute.

The system registers corresponding TInfo provider implementation under the custom interface into the IoC container as part of the RegisterObjectType(String, ObjectTypeInfo, Type, Boolean) method.

Unlike with IInfoProviderTInfo the system does not register the provider implementation under this interface (i.e. this interface is designed to be a part of other interfaces).

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public interface IInfoBySiteAndNameProvider<TInfo>
where TInfo : new(), AbstractInfoBase<TInfo>

Type Parameters

TInfo
Type of info object managed by the provider.

The IInfoBySiteAndNameProviderTInfo type exposes the following members.

Methods
  NameDescription
Public methodGet
Gets an instance of info object based on its code name and site ID.
Public methodGetAsync
Asynchronously gets an instance of info object based on its code name and site ID.
Top
See Also