Sdílet prostřednictvím


Item Property (String)

Gets the specified CatalogProperty object from the collection, identified by key. In C#, this property is the indexer for the CatalogPropertyCollection class.

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

Syntax

'Declaration
Public Overrides ReadOnly Property Item ( _
    propertyName As String _
) As CatalogProperty
'Usage
Dim instance As CatalogPropertyCollection
Dim propertyName As String
Dim value As CatalogProperty

value = instance.Item(propertyName)
public override CatalogProperty Item[
    string propertyName
] { get; }
public:
virtual property CatalogProperty^ Item[String^ propertyName] {
    CatalogProperty^ get (String^ propertyName) override;
}
JScript does not support indexed properties.

Parameters

  • propertyName
    Type: System..::.String
    An expression that specifies the key value of a member of the collection. The name of the object to find.

Property Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogProperty
A reference to a specified CatalogProperty object from the CatalogPropertyCollection.

Exceptions

Exception Condition
EntityDoesNotExistException

Thrown if no CatalogProperty in the collection's current page is named propertyName.

Remarks

If propertyName doesn't match any existing member of the collection, an error occurs.

If an object exists within the collection that matches the propertyName, it is returned.

Returns the indexed object within the collection of categories encountered in the catalog.

This property is the indexer for the CatalogPropertyCollection class. The Item property allows for accessing the CatalogPropertyCollection by categoryName.

Permissions

See Also

Reference

CatalogPropertyCollection Class

CatalogPropertyCollection Members

Item Overload

Microsoft.CommerceServer.Catalog Namespace