IAnalysisWarning::GetNodeIds 方法

傳回與此警告相關聯之任何相關內容節點的識別碼。

語法

HRESULT GetNodeIds(
  [in, out] ULONG *pulCount,
  [out]     GUID  **ppNodeIds
);

參數

pulCount [in, out]

ppNodeIds中的全域唯一識別碼數目 (GUID) 。

ppNodeIds [out]

GUID 陣列的指標,識別與此分析警告相關聯的內容節點,如果沒有與警告相關聯的內容節點,則為 Null

傳回值

如需傳回值的描述,請參閱 類別和介面 - 筆跡分析

備註

如果 ppNodeIds 傳遞為 NullGetNodeIds 方法會傳回 S_OK ,並在 pulCount中傳回矩形數目。

警告

若要避免記憶體流失,當您不再需要資訊時,請使用 CoTaskMemFree 從 *ppNodeIds 釋放記憶體。

範例

下列範例示範如何取得IAnalysisWarning中的ICoNtextNode物件, warning 以及如何只取得ICoNtextNode物件的數目

// Get the count of the context nodes and their identifiers.
ULONG count = 0;
GUID* nodeIds = 0;
warning->GetNodeIds(&count, &nodeIds);

// Use nodeIds

::CoTaskMemFree(nodeIds);

// GetNodeIds just gets the count and returns S_OK
ULONG number = 0;
warning->GetNodeIds(&number, NULL); 

規格需求

需求
最低支援的用戶端
Windows XP Tablet PC Edition [僅限傳統型應用程式]
最低支援的伺服器
都不支援
標頭
IACom.h (也需要 IACom_i.c)
DLL
IACom.dll

另請參閱

IAnalysisWarning

ICoNtextNode

IInkAnalyzer::FindNode 方法

筆跡分析參考