Class IndexerEndpoint<TElementEndpoint>
Endpoint that addresses child TElementEndpoints by ID.
public class IndexerEndpoint<TElementEndpoint> : EndpointBase, IIndexerEndpoint<TElementEndpoint>, IEndpoint where TElementEndpoint : IEndpoint
Type Parameters
TElementEndpointThe type of IEndpoint to provide for individual elements. Must have a public constructor with an IEndpoint and an Uri or string parameter.
- Inheritance
-
IndexerEndpoint<TElementEndpoint>
- Implements
-
IIndexerEndpoint<TElementEndpoint>
- Inherited Members
Constructors
IndexerEndpoint(IEndpoint, string)
Creates a new indexer endpoint.
public IndexerEndpoint(IEndpoint referrer, string relativeUri)
Parameters
referrerIEndpointThe endpoint used to navigate to this one.
relativeUristringThe URI of this endpoint relative to the
referrer's. Add a./prefix here to imply a trailing slashreferrer's URI.
IndexerEndpoint(IEndpoint, Uri)
Creates a new indexer endpoint.
public IndexerEndpoint(IEndpoint referrer, Uri relativeUri)
Parameters
referrerIEndpointThe endpoint used to navigate to this one.
relativeUriUriThe URI of this endpoint relative to the
referrer's.
Properties
this[string]
Returns an element endpoint for a specific child element.
public virtual TElementEndpoint this[string id] { get; }
Parameters
idstringThe ID identifying the entity.
Property Value
- TElementEndpoint