Partilhar via


SfcMetadataRelation Class

Definition

public class SfcMetadataRelation : Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcMetadataDiscovery
type SfcMetadataRelation = class
    inherit SfcMetadataDiscovery
Public Class SfcMetadataRelation
Inherits SfcMetadataDiscovery
Inheritance
SfcMetadataRelation

Constructors

SfcMetadataRelation(String, Type, SfcCardinality, AttributeCollection)
SfcMetadataRelation(String, Type, SfcCardinality, SfcRelationship, AttributeCollection)
SfcMetadataRelation(String, Type, SfcCardinality, SfcRelationship, Type, AttributeCollection)
SfcMetadataRelation(String, Type, SfcCardinality, SfcRelationship, Type, SfcPropertyFlags, AttributeCollection)
SfcMetadataRelation(String, Type, SfcCardinality, SfcRelationship, Type, SfcPropertyFlags, Object, AttributeCollection)
SfcMetadataRelation(String, Type, SfcCardinality, SfcRelationship, Type)
SfcMetadataRelation(String, Type, SfcPropertyFlags, AttributeCollection)
SfcMetadataRelation(String, Type, SfcPropertyFlags)
SfcMetadataRelation(String, Type)

Properties

Cardinality

Specifies the cardinality of this type in relationship with its parent.

ContainerType

If this is a container, this is the type it contains

ElementTypeName

Returns the element type name, if it is different from the type name. This element type name is used in a URN.

(Inherited from SfcMetadataDiscovery)
IsBrowsable

Indicates whether the type should be browseable -- used for UI such as Powershell

Keys

If this is an object with one or more identifying keys, the list of properties holding the keys will be returned.

(Inherited from SfcMetadataDiscovery)
Objects (Inherited from SfcMetadataDiscovery)
Properties (Inherited from SfcMetadataDiscovery)
PropertyDefaultValue

If htis is a property type, this will return a default value for the property

PropertyFlags

If this is a property type, this will return the flags that have been defined for it.

PropertyName

Name of the property.

ReferredBy (Inherited from SfcMetadataDiscovery)
Relations

Returns the list of properties this object contains

(Inherited from SfcMetadataDiscovery)
Relationship

Relationship with the parent.

RelationshipAttributes

Attributes for this node.

SupportsDesignMode

Indicates whether the type supports design mode

Type

Specifies the type of this node.

(Inherited from SfcMetadataDiscovery)
TypeAttributes (Inherited from SfcMetadataDiscovery)

Methods

FindProperty(String) (Inherited from SfcMetadataDiscovery)
Resolve(Object)

Helper method to resolve references If the metadata relation is a reference relationship, it will use the reference attribute's resolver to return the target instances. If the metadata relation is a simple property value, it will return the value itself.

Resolve<T,S>(S)

Helper method to resolve a single-target reference. It returns a strongly-typed instance.

ResolveCollection(Object)

Helper method to resolve reference collections. If the metadata relation is a reference collection relationship, it will enumerate the target collection instances. If the metadata relation is a simple property value, it will enumerate the value itself.

ResolveCollection<T,S>(S)

Helper method to resolve reference collections. It yields strongly-typed instances. Any enumerated values which are not compatible as type T are skipped over.

Applies to