Delen via


GetVariant Method

Retrieves a Variant representing the product variants requested.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function GetVariant ( _
    variantId As String _
) As Variant
'Usage
Dim instance As ProductFamily
Dim variantId As String
Dim returnValue As Variant

returnValue = instance.GetVariant(variantId)
public Variant GetVariant(
    string variantId
)
public:
Variant^ GetVariant(
    String^ variantId
)
public function GetVariant(
    variantId : String
) : Variant

Parameters

  • variantId
    Type: System..::.String
    The unique identifier for the variant to return. Should not be nullNothingnullptra null reference (Nothing in Visual Basic).

Return Value

Type: Microsoft.CommerceServer.Catalog..::.Variant
Retrieve a Variant object representing the product variant requested.

Remarks

Returns a Variant object that contains information about the product variant specified by variantId.

Permissions

See Also

Reference

ProductFamily Class

ProductFamily Members

Microsoft.CommerceServer.Catalog Namespace