Aracılığıyla paylaş


ProfileStereotypeExtensions.ApplyStereotype Yöntem

Edinmek için öğeyi uygulanır.Model öğesinin uzantısı tarafından edinmek temsil eden bir IStereotypeInstance oluşturur.

Ad alanı:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Derleme:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll içinde)

Sözdizimi

'Bildirim
<ExtensionAttribute> _
Public Shared Function ApplyStereotype ( _
    element As IElement, _
    stereotype As IStereotype _
) As IStereotypeInstance
public static IStereotypeInstance ApplyStereotype(
    this IElement element,
    IStereotype stereotype
)
[ExtensionAttribute]
public:
static IStereotypeInstance^ ApplyStereotype(
    IElement^ element, 
    IStereotype^ stereotype
)
static member ApplyStereotype : 
        element:IElement * 
        stereotype:IStereotype -> IStereotypeInstance 
public static function ApplyStereotype(
    element : IElement, 
    stereotype : IStereotype
) : IStereotypeInstance

Parametreler

Dönüş Değeri

Tür: Microsoft.VisualStudio.Uml.Classes.IStereotypeInstance
Bir IStereotypeInstance bir edinmek ve bir öğe arasındaki bağlantıyı gösterir.

Kullanım Notu

Visual Basic ve C# programlarında, bu yöntemi IElement türündeki herhangi bir nesne üzerinde örnek yöntemi olarak çağırabilirsiniz. Bu yöntemi çağırmak için örnek yöntemi sözdizimini kullandığınızda, ilk parametreyi yok sayın. Daha fazla bilgi için bkz. Uzantı yöntemleri (Visual Basic) veya Uzantı yöntemleri (C# Programlama Kılavuzu).

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ProfileStereotypeExtensions Sınıf

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Ad Alanı