Click or drag to resize

StoreProductRepositoryGetByIdT(NetForumId) Method

Retrieves a given Store Product by ID. Note that products that are not Store Products will not be retrieved. See the Ignition User Guide for more information on what criteria a product must meet to be included.

Namespace: Ignition.Commerce.Products
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.28229
Syntax
public T GetById<T>(
	NetForumId productId
)
where T : StoreProduct

Parameters

productId  NetForumId
The product Id of the Store Product to be retrieved

Type Parameters

T
An overridden entity type, as registered with the CustomEntityRegistrar

Return Value

T
The requested Store Product
Exceptions
ExceptionCondition
IgnitionEntityNotFoundExceptionThrown when the requested product is either not a Store Product or does not exist
See Also