Commerce Foundation SiteTerm CommerceQuery
This Commerce Server 2009 operation is used to retrieve a site term object and its associated site term elements.
Syntax
var querySiteTerm = new CommerceQuery<CommerceEntity>("SiteTerm");
Parameters
Parameter |
Description |
---|---|
CommerceModelSearch<SiteTerm> |
If present, the site term with the will be returned; otherwise, all site terms will be returned. |
Operation Sequence Components
Operation Sequence Component |
Description |
---|---|
SiteTermLoader |
Retrieves the site term from Commerce Server. |
SiteTermElementsProcessor |
Optionally retrieves the site term elements for this site term. |
Related Operations
Related Operation |
Description |
---|---|
CommerceQueryRelatedItem<SiteTermElement>(Elements) |
Retrieves the site term element relationship to the SiteTerm. This operation supports the CommerceModelSearch<SiteTermElement> criteria mechanism only. |
Exceptions
This operation does not throw any exceptions for Microsoft Multi-Channel Commerce Foundation to handle.
Remarks
This operation supports the CommerceModelSearch criteria mechanism only. If the site term does not exist, an exception will not be thrown, so the caller must check the Count in the CommerceQueryOperationResponse to determine success.