Metoda Extensions.CreateCommentLink — (ILayerComment, ILayer)
Ten komentarz Link do warstwy.
Przestrzeń nazw: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Zestaw: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (w Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Składnia
'Deklaracja
<ExtensionAttribute> _
Public Shared Function CreateCommentLink ( _
sourceComment As ILayerComment, _
targetLayer As ILayer _
) As ILayerCommentLink
public static ILayerCommentLink CreateCommentLink(
this ILayerComment sourceComment,
ILayer targetLayer
)
[ExtensionAttribute]
public:
static ILayerCommentLink^ CreateCommentLink(
ILayerComment^ sourceComment,
ILayer^ targetLayer
)
static member CreateCommentLink :
sourceComment:ILayerComment *
targetLayer:ILayer -> ILayerCommentLink
public static function CreateCommentLink(
sourceComment : ILayerComment,
targetLayer : ILayer
) : ILayerCommentLink
Parametry
sourceComment
Typ: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerCommentKomentarz źródła
targetLayer
Typ: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerWarstwą docelową
Wartość zwracana
Typ: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerCommentLink
Nowe łącze komentarz
Informacje dotyczące użycia
W językach Visual Basic i C# tę metodę można wywołać jako metodę wystąpienia dowolnego obiektu typu ILayerComment. Gdy w celu wywołania tej metody jest używana składnia metody wystąpienia, należy pominąć pierwszy parametr. Aby uzyskać więcej informacji, zobacz temat Metody rozszerzeń (Visual Basic) lub Metody rozszerzeń (Przewodnik programowania w języku C#).
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.
Zobacz też
Informacje
Przeciążenie CreateCommentLink
Przestrzeń nazw Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer