GetDisplaySize Method (Int32)
Retrieves an existing DisplaySize, as identified by the unique identifier.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetDisplaySize ( _
displaySizeId As Integer _
) As DisplaySize
'Usage
Dim instance As DisplaySizeManager
Dim displaySizeId As Integer
Dim returnValue As DisplaySize
returnValue = instance.GetDisplaySize(displaySizeId)
public DisplaySize GetDisplaySize(
int displaySizeId
)
public:
DisplaySize^ GetDisplaySize(
int displaySizeId
)
public function GetDisplaySize(
displaySizeId : int
) : DisplaySize
Parameters
- displaySizeId
Type: System..::.Int32
The Id of the DisplaySize to retrieve. Must not be less than 1.
Return Value
Type: Microsoft.CommerceServer.Marketing..::.DisplaySize
The DisplaySize retrieved from the database.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | customerId was less than 1. |
EntityDoesNotExistException | The requested DisplaySize does not exist. |
Remarks
Use this method to retrieve a specific DisplaySize object from the database.
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.