IContextNode::AddContextLink メソッド

IContextNode オブジェクトのコンテキスト リンクのコレクションに新しい IContextLink を追加します。

構文

HRESULT AddContextLink(
  [in]  IContextNode         *pDestinationNode,
  [in]  ContextLinkDirection linkDirection,
  [out] IContextLink         **ppContextLinkToAdd
);

パラメーター

pDestinationNode [in]

新しい IContextLink の宛先 IContextNode

linkDirection [in]

作成する IContextLink オブジェクトの方向。

ppContextLinkToAdd [out]

新しい IContextLink オブジェクトへのポインター。

戻り値

戻り値の説明については、「 クラスとインターフェイス - インク分析」を参照してください。

解説

注意事項

メモリ リークを回避するには、コンテキスト ノードを使用する必要がなくなったときに、*ppContextLinkToAddIUnknown::Release を呼び出します。

この IContextNode オブジェクトは、新しい IContextLink オブジェクトのソース ノード (IContextLink::GetSourceNode を参照) です。

必要条件

要件
サポートされている最小のクライアント
Windows XP タブレット PC エディション [デスクトップ アプリのみ]
サポートされている最小のサーバー
サポートなし
Header
IACom.h (IACom_i.c も必要)
[DLL]
IACom.dll

関連項目

IContextNode

IContextLink

IContextLinks

ContextLinkDirection

IContextNode::D eleteContextLink

IContextNode::GetContextLinks

インク分析リファレンス