IVsContainedLanguageCodeSupport.IsValidID Method

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)

Syntax

'Déclaration
Function IsValidID ( _
    bstrID As String, _
    <OutAttribute> ByRef pfIsValidID As Boolean _
) As Integer
'Utilisation
Dim instance As IVsContainedLanguageCodeSupport
Dim bstrID As String
Dim pfIsValidID As Boolean
Dim returnValue As Integer

returnValue = instance.IsValidID(bstrID, _
    pfIsValidID)
int IsValidID(
    string bstrID,
    out bool pfIsValidID
)
int IsValidID(
    [InAttribute] String^ bstrID, 
    [OutAttribute] bool% pfIsValidID
)
abstract IsValidID : 
        bstrID:string * 
        pfIsValidID:bool byref -> int 
function IsValidID(
    bstrID : String, 
    pfIsValidID : boolean
) : int

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.

Remarks

COM Signature

From singlefileeditor.idl:

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

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

IVsContainedLanguageCodeSupport Members

Microsoft.VisualStudio.TextManager.Interop Namespace