Initializes a new instance of the LinkedElementCollection<T> class for a specified element.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub New ( _
sourceRolePlayer As ModelElement, _
sourceRoleId As Guid _
)
'使用
Dim sourceRolePlayer As ModelElement
Dim sourceRoleId As Guid
Dim instance As New LinkedElementCollection(sourceRolePlayer, _
sourceRoleId)
public LinkedElementCollection(
ModelElement sourceRolePlayer,
Guid sourceRoleId
)
public:
LinkedElementCollection(
ModelElement^ sourceRolePlayer,
Guid sourceRoleId
)
public function LinkedElementCollection(
sourceRolePlayer : ModelElement,
sourceRoleId : Guid
)
Parameters
sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element which represents the source role in a relationship.
sourceRoleId
Type: System.GuidThe ID of the source element in the relationship.
Permissions
- 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.
See Also
Reference
LinkedElementCollection<T> Class
LinkedElementCollection<T> Members