Share via


AttributeFilter Class

Definition

A filter to constrain the possible values of a child attribute based upon the value of a parent attribute.

public ref class AttributeFilter : Microsoft::MasterDataServices::Services::DataContracts::DataContractBase
[System.Runtime.Serialization.DataContract(Name="AttributeFilter", Namespace="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")]
public class AttributeFilter : Microsoft.MasterDataServices.Services.DataContracts.DataContractBase
[<System.Runtime.Serialization.DataContract(Name="AttributeFilter", Namespace="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")>]
type AttributeFilter = class
    inherit DataContractBase
Public Class AttributeFilter
Inherits DataContractBase
Inheritance
AttributeFilter
Attributes

Remarks

The AttributeFilter complex type specifies a filter to constrain the possible values of a child attribute based upon the value of a parent attribute. The parent-child relationship is defined by a specified derived heireachy level.

Constructors

AttributeFilter()

Initializes a new instance of the MetadataAttribute class.

Properties

DerivedHierarchyId

Specifies the derived hierarchy identifier of the level that filters the attribute. The hierarchy MUST belong to the same model as the attribute that is being filtered.

LevelNumber

Specifies the derived hierarchy level number, which is zero-based and runs from hierarchy top to bottom. The level must be of type DBA or ManyToMany. The level's EntityId must be the same as ParentAttributeId's DomainEntityId. The next level down must have the same EntityId as the DomainEntityId of the child attribute being filtered.

ParentAttributeId

Specifies the parent attribute identifier whose value filters the list of possible values for the child attribute. The parent MUST be a domain-based attribute (DBA) within the same EntityMemberType as the child attribute that it filters.

Methods

SetProperty<T>(T, T, String, Boolean)

Changes the property to the given value.
Returns whether the new value is different from the old value.

(Inherited from DataContractBase)
SetProperty<T>(T, T, String)

Changes the property to the given value.
Returns whether the new value is different from the old value.

(Inherited from DataContractBase)

Applies to