CoreDomainModel.CreateElementLink Yöntem
Belirtilen türde bir öğe bağlantısı oluşturur.
Ad alanı: Microsoft.VisualStudio.Modeling
Derleme: Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll içinde)
Sözdizimi
'Bildirim
Public Overrides NotOverridable Function CreateElementLink ( _
partition As Partition, _
elementLinkType As Type, _
roleAssignments As RoleAssignment(), _
propertyAssignments As PropertyAssignment() _
) As ElementLink
public override sealed ElementLink CreateElementLink(
Partition partition,
Type elementLinkType,
RoleAssignment[] roleAssignments,
PropertyAssignment[] propertyAssignments
)
Parametreler
- partition
Tür: Microsoft.VisualStudio.Modeling.Partition
Öğenin bulunduğu bölüm.
- elementLinkType
Tür: System.Type
Bu etki alanı modeli ait öğe bağlantı türü.
- roleAssignments
Tür: array<Microsoft.VisualStudio.Modeling.RoleAssignment[]
Yeni bağlantı için ilişki rol atamaları listesi.
- propertyAssignments
Tür: array<Microsoft.VisualStudio.Modeling.PropertyAssignment[]
Yeni öğe özellik atamaları.
Dönüş Değeri
Tür: Microsoft.VisualStudio.Modeling.ElementLink
Öğe bağlantısı oluşturulur.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.