次の方法で共有


IDiaSymbol::get_lexicalParent

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]

Retrieves a reference to the lexical parent of the symbol.

HRESULT get_lexicalParent ( 
   IDiaSymbol** pRetVal
);

Parameters

  • pRetVal
    [out] Returns an IDiaSymbol object that represents the lexical parent of the symbol.

Return Value

If successful, returns S_OK; otherwise, returns S_FALSE or error code.

注意

A return value of S_FALSE means the property is not available for the symbol.


Remarks

The lexical parent of a symbol is the enclosing function or module. For example, the lexical parent of a function parameter or local variable is the function itself while the lexical parent of the function is the module it is defined in.

The possible symbols that can appear as lexical parents are documented in Lexical Hierarchy of Symbol Types.

See Also

IDiaSymbol
Lexical Hierarchy of Symbol Types