Click or drag to resize
IInfoBySiteAndGuidProviderTInfoGetAsync Method
Asynchronously gets an instance of info object based on its GUID and site ID.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
Task<TInfo> GetAsync(
	Guid guid,
	int siteId,
	Nullable<CancellationToken> cancellationToken = null
)

Parameters

guid
Type: SystemGuid
GUID of the info object to look for.
siteId
Type: SystemInt32
ID of the site to which to constrain the lookup.
cancellationToken (Optional)
Type: SystemNullableCancellationToken
The cancellation instruction.

Return Value

Type: TaskTInfo
Returns a task returning either an instance of TInfo corresponding to guid and siteId or null.
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when TInfo does not have the GUID column.
See Also