Redigera

Dela via


ITypeLib.IsName(String, Int32) Method

Definition

Indicates whether a passed-in string contains the name of a type or member described in the library.

public:
 bool IsName(System::String ^ szNameBuf, int lHashVal);
public bool IsName (string szNameBuf, int lHashVal);
abstract member IsName : string * int -> bool
Public Function IsName (szNameBuf As String, lHashVal As Integer) As Boolean

Parameters

szNameBuf
String

The string to test. This is an in/out parameter.

lHashVal
Int32

The hash value of szNameBuf.

Returns

true if szNameBuf was found in the type library; otherwise, false.

Remarks

If the type library contains the string specified by the szNameBuf parameter, szNameBuf is overwritten with the name found in the type library, using the casing found in the type library. For example, if the type library contains the string "aBc" and the FindName method passes "abc" as the szNameBuf parameter, szNameBuf becomes "aBc" when the method returns.

For more information, see ITypeLib::IsName method.

Applies to