Metoda Extensions.CreateCommentLink — (ILayerComment, ILayerComment)
Połączyć tę warstwę na komentarz.
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, _
targetComment As ILayerComment _
) As ILayerCommentLink
public static ILayerCommentLink CreateCommentLink(
this ILayerComment sourceComment,
ILayerComment targetComment
)
[ExtensionAttribute]
public:
static ILayerCommentLink^ CreateCommentLink(
ILayerComment^ sourceComment,
ILayerComment^ targetComment
)
static member CreateCommentLink :
sourceComment:ILayerComment *
targetComment:ILayerComment -> ILayerCommentLink
public static function CreateCommentLink(
sourceComment : ILayerComment,
targetComment : ILayerComment
) : ILayerCommentLink
Parametry
sourceComment
Typ: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerCommentKomentarz źródła
targetComment
Typ: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerCommentWarstwą 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