RelationshipHasTarget.SetRelationship Method
Sets Relationship.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)
Syntax
'Declaration
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
- element
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole
- newRelationship
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRelationship
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.