IVsContainedLanguageCodeSupport::IsValidID Method (String^, Boolean)

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int IsValidID(
	String^ bstrID,
	[OutAttribute] bool% pfIsValidID
)

Parameters

bstrID
Type: System::String^

[in] An identifier of the contained language.

pfIsValidID
Type: System::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.)

Return Value

Type: System::Int32

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

From singlefileeditor.idl:

HRESULT IsValidID(
   [in]  BSTR          bstrID,
   [out] VARIANT_BOOL* pfIsValidID
);
Return to top
Show: