Item Property
Gets a CommerceResource from the collection, based upon the resource name.
Namespace: Microsoft.CommerceServer.Runtime.Configuration
Assembly: Microsoft.CommerceServer.Shared (in Microsoft.CommerceServer.Shared.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
resourceName As String _
) As CommerceResource
'Usage
Dim instance As CommerceResourceCollection
Dim resourceName As String
Dim value As CommerceResource
value = instance.Item(resourceName)
public CommerceResource Item[
string resourceName
] { get; }
public:
property CommerceResource^ Item[String^ resourceName] {
CommerceResource^ get (String^ resourceName);
}
JScript does not support indexed properties.
Parameters
- resourceName
Type: System..::.String
The name of the resource to retrieve.
Property Value
Type: Microsoft.CommerceServer.Runtime.Configuration..::.CommerceResource
The CommerceResource object in the CommerceResourceCollection collection with the specified name.
Remarks
Indexer to allow for accessing a CommerceResource based on a resource name. Gets the CommerceResource object in the CommerceResourceCollection collection 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.
See Also
Reference
CommerceResourceCollection Class