GetIndustryCode Method

Retrieves an existing IndustryCode as identified by the specified identifier.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetIndustryCode ( _
    industryCodeId As Integer _
) As IndustryCodeData
'Usage
Dim instance As MarketingWebService
Dim industryCodeId As Integer
Dim returnValue As IndustryCodeData

returnValue = instance.GetIndustryCode(industryCodeId)
[WebMethodAttribute]
public virtual IndustryCodeData GetIndustryCode(
    int industryCodeId
)
[WebMethodAttribute]
public:
virtual IndustryCodeData^ GetIndustryCode(
    int industryCodeId
)
public function GetIndustryCode(
    industryCodeId : int
) : IndustryCodeData

Parameters

Return Value

Type: IndustryCodeData
The IndustryCodeData instance associated with industryCodeId.

Exceptions

Exception Condition
ArgumentOutOfRangeException

industryCodeId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

No item exists with this industryCodeId.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Use this method to retrieve a specific IndustryCodeData containing the IndustryCode object from the database.

Industry codes provide a definition type for different industries such as automotive, aviation, and beverage. You use industry codes to identify the associated industry of an advertisement, thereby preventing two ads from competing companies in the same industry from appearing on the same Web page.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace