Condividi tramite


CodeGenerationUtilities.DefinesNewTargetRole Method

In relationship derivation, a relationship can use the same target role-player as its parent relationship, or it can define a new one (which derives from the parent relationship's target role-player). This method tells whether the given DomainRelationship defines a new target role- player.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

Syntax

'Declaration
Public Shared Function DefinesNewTargetRole ( _
    domainRelationship As DomainRelationship _
) As Boolean
public static bool DefinesNewTargetRole(
    DomainRelationship domainRelationship
)
public:
static bool DefinesNewTargetRole(
    DomainRelationship^ domainRelationship
)
static member DefinesNewTargetRole : 
        domainRelationship:DomainRelationship -> bool
public static function DefinesNewTargetRole(
    domainRelationship : DomainRelationship
) : boolean

Parameters

Return Value

Type: System.Boolean
True if the given DomainRelationship defines a new target role-player, false otherwise.

.NET Framework Security

See Also

Reference

CodeGenerationUtilities Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace