Share via


GetIndustryCode Method

Retrieves an IndustryCode with the specified Identifier from the database.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Function GetIndustryCode ( _
    industryCodeId As Integer _
) As IndustryCode
'Usage
Dim instance As IndustryCodeManager
Dim industryCodeId As Integer
Dim returnValue As IndustryCode

returnValue = instance.GetIndustryCode(industryCodeId)
public IndustryCode GetIndustryCode(
    int industryCodeId
)
public:
IndustryCode^ GetIndustryCode(
    int industryCodeId
)
public function GetIndustryCode(
    industryCodeId : int
) : IndustryCode

Parameters

Return Value

Type: Microsoft.CommerceServer.Marketing..::.IndustryCode
The IndustryCode retrieved from the database.

Exceptions

Exception Condition
ArgumentOutOfRangeException

industryCodeId was less than 1.

EntityDoesNotExistException

The requested IndustryCode does not exist.

Remarks

Returns an IndustryCode object with the specified Id.

Permissions

See Also

Reference

IndustryCodeManager Class

IndustryCodeManager Members

Microsoft.CommerceServer.Marketing Namespace