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
- industryCodeId
Type: System..::.Int32
The Id of the IndustryCode to retrieve. Must not be less than 1.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.