共用方式為


RelationshipHasSource.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

'宣告
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

RelationshipHasSource Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace