GetDisplaySize Method (String)

Retrieves a DisplaySize object with the specified name from the database.

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

Syntax

'Declaration
Public Function GetDisplaySize ( _
    displaySizeName As String _
) As DisplaySize
'Usage
Dim instance As DisplaySizeManager
Dim displaySizeName As String
Dim returnValue As DisplaySize

returnValue = instance.GetDisplaySize(displaySizeName)
public DisplaySize GetDisplaySize(
    string displaySizeName
)
public:
DisplaySize^ GetDisplaySize(
    String^ displaySizeName
)
public function GetDisplaySize(
    displaySizeName : String
) : DisplaySize

Parameters

Return Value

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

Exceptions

Exception Condition
PropertyNullValidationException

displaySizeName was nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

displaySizeName was less than 1 or more than 50 chars in length.

Remarks

Returns a DisplaySize object with the specified name.

Permissions

See Also

Reference

DisplaySizeManager Class

DisplaySizeManager Members

GetDisplaySize Overload

Microsoft.CommerceServer.Marketing Namespace