Partager via


RelationshipHasTarget.SetRelationship Method

Sets Relationship.

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

Syntax

'Déclaration
Public Shared Sub SetRelationship ( _
    element As DomainRole, _
    newRelationship As DomainRelationship _
)
public static void SetRelationship(
    DomainRole element,
    DomainRelationship newRelationship
)
public:
static void SetRelationship(
    DomainRole^ element, 
    DomainRelationship^ newRelationship
)
static member SetRelationship : 
        element:DomainRole * 
        newRelationship:DomainRelationship -> unit 
public static function SetRelationship(
    element : DomainRole, 
    newRelationship : DomainRelationship
)

Parameters

.NET Framework Security

See Also

Reference

RelationshipHasTarget Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace