GetDisplaySizeByName Method

Retrieves an existing DisplaySize as identified by the specified name.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetDisplaySizeByName ( _
    displaySizeName As String _
) As DisplaySizeData
'Usage
Dim instance As MarketingWebService
Dim displaySizeName As String
Dim returnValue As DisplaySizeData

returnValue = instance.GetDisplaySizeByName(displaySizeName)
[WebMethodAttribute]
public virtual DisplaySizeData GetDisplaySizeByName(
    string displaySizeName
)
[WebMethodAttribute]
public:
virtual DisplaySizeData^ GetDisplaySizeByName(
    String^ displaySizeName
)
public function GetDisplaySizeByName(
    displaySizeName : String
) : DisplaySizeData

Parameters

Return Value

Type: DisplaySizeData
The DisplaySizeData associated with the displaySizeName.

Exceptions

Exception Condition
ArgumentNullException

displaySizeName is less than nullNothingnullptra null reference (Nothing in Visual Basic).

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

No item exists with this displaySizeName.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Use this method to retrieve a specific DisplaySizeData containing the DisplaySize object from the database.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace