Extensions.CreateCommentLink - метод (ILayerComment, ILayer)
Свяжите данный комментарий со слоем.
Пространство имен: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Сборка: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (в Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Синтаксис
'Декларация
<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
Параметры
- sourceComment
Тип: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerComment
Исходный комментарий
- targetLayer
Тип: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayer
Целевой слой
Возвращаемое значение
Тип: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerCommentLink
Ссылка на новый комментарий
Примечание об использовании
В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа ILayerComment. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе Методы расширения (Visual Basic) или Методы расширения (Руководство по программированию в C#).
Безопасность платформы .NET Framework
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Использование библиотек из не вполне надежного кода.
См. также
Ссылки
CreateCommentLink - перегрузка
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer - пространство имен
CreateComment()