다음을 통해 공유


IDebugClassField::DoesInterfaceExist

Note

This article applies to Visual Studio 2015. 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

Determines if a specific interface is defined in the class.

Syntax

HRESULT DoesInterfaceExist(   
   LPCOLESTR pszInterfaceName  
);  
int DoesInterfaceExist(  
   [In] string pszInterfaceName  
);  

Parameters

pszInterfaceName
[in] A string containing the interface name to look for.

Return Value

If successful, returns S_OK, returns S_FALSE if the interface does not exist; otherwise, returns an error code.

Remarks

This method in effect gets an enumeration of all interfaces and searches the list for a matching interface.

See Also

IDebugClassField