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
- displaySizeName
Type: System..::.String
The name of the DisplaySize to retrieve.
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
- 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.