Freigeben über


IVsContainedLanguageCodeSupport.IsValidID(String, Boolean) Method

Definition

Examines the provided ID to see if it is a valid identifier for the contained language.

public:
 int IsValidID(System::String ^ bstrID, [Runtime::InteropServices::Out] bool % pfIsValidID);
int IsValidID(std::wstring const & bstrID, [Runtime::InteropServices::Out] bool & pfIsValidID);
public int IsValidID (string bstrID, out bool pfIsValidID);
abstract member IsValidID : string * bool -> int
Public Function IsValidID (bstrID As String, ByRef pfIsValidID As Boolean) As Integer

Parameters

bstrID
String

[in] An identifier of the contained language.

pfIsValidID
Boolean

[out] Returns nonzero (TRUE) indicating the ID is valid; otherwise, returns zero (FALSE). (C++ only: this value is returned as a VARIANT_BOOL object.)

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT IsValidID(  
   [in]  BSTR          bstrID,  
   [out] VARIANT_BOOL* pfIsValidID  
);  

Applies to