Share via


IDebugBinder3::FindAlias

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method locates an alias, given a name. This will search all aliases in the program.

Syntax

HRESULT FindAlias(
   LPCOLESTR     pcstrName,
   IDebugAlias** ppAlias
);
int FindAlias(
   string          pcstrName,
   out IDebugAlias ppAlias
);

Parameters

pcstrName
[in] Name of alias to find.

ppAlias
[out] Alias found (if any) represented by the IDebugAlias interface.

Return Value

If successful, returns S_OK; otherwise, returns S_FALSE (if alias is not found) or an error code.

Remarks

This method initializes the destination object to null before calling; then it tests for a null value afterward to determine whether or not the alias was found.

See also