November Happy Hour will be moved to Thursday December 5th.

Class MetaUriSegment

Handles Uri segment specific calls to the database

Inheritance
System.Object
MetaUriSegment
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.MetaDataPlus
Assembly: Mediachase.MetaDataPlus.dll
Version: 13.30.0
Syntax
public class MetaUriSegment

Constructors

MetaUriSegment()

Declaration
public MetaUriSegment()

Methods

ListMatchingSegments(Int32, Int32, String, MetaDataContext)

Lists all children directly under parentNodeId that matches the uriSegment

Declaration
public virtual IList<MetaUriSegmentResult> ListMatchingSegments(int parentNodeId, int catalogId, string uriSegment, MetaDataContext context)
Parameters
Type Name Description
System.Int32 parentNodeId

Id of the parent node to search under, or 0 for searching on the catalog level.

System.Int32 catalogId

The catalogId, or 0 to not filter by catalog.

System.String uriSegment

The url segment to find

MetaDataContext context

The meta data context

Returns
Type Description
System.Collections.Generic.IList<MetaUriSegmentResult>

List of children

ListMatchingSegments(Int32, String, MetaDataContext)

Lists all children directly under parentNodeId that matches the uriSegment

Declaration
public virtual IList<MetaUriSegmentResult> ListMatchingSegments(int parentNodeId, string uriSegment, MetaDataContext context)
Parameters
Type Name Description
System.Int32 parentNodeId

Id of the parent node to search under, or 0 for searching on the catalog level.

System.String uriSegment

The url segment to find

MetaDataContext context

The meta data context

Returns
Type Description
System.Collections.Generic.IList<MetaUriSegmentResult>

List of children

ValidateUniqueSegment(Int32, Int32, String, MetaDataContext)

Validates there is no child directly under parentNodeId with the uriSegment

Declaration
public virtual bool ValidateUniqueSegment(int parentNodeId, int catalogId, string uriSegment, MetaDataContext context)
Parameters
Type Name Description
System.Int32 parentNodeId

Id of the parent node to search under, or 0 for searching on the catalog level.

System.Int32 catalogId

The catalogId, or 0 to not filter by catalog.

System.String uriSegment

The url segment to find

MetaDataContext context

The meta data context

Returns
Type Description
System.Boolean

True if no children was found, otherwise false.

ValidateUniqueSegment(Int32, String, MetaDataContext)

Validates there is no child directly under parentNodeId with the uriSegment

Declaration
public virtual bool ValidateUniqueSegment(int parentNodeId, string uriSegment, MetaDataContext context)
Parameters
Type Name Description
System.Int32 parentNodeId

Id of the parent node to search under, or 0 for searching on the catalog level.

System.String uriSegment

The url segment to find

MetaDataContext context

The meta data context

Returns
Type Description
System.Boolean

True if no children was found, otherwise false.