Class IndexerEndpoint<TElementEndpoint>
Endpoint that addresses child TElementEndpoint
s by ID.
public class IndexerEndpoint<TElementEndpoint> : EndpointBase, IIndexerEndpoint<TElementEndpoint>, IEndpoint where TElementEndpoint : IEndpoint
Type Parameters
TElementEndpoint
The 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
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
stringThe 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
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
UriThe 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
id
stringThe ID identifying the entity.
Property Value
- TElementEndpoint