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
'Declaration
Function IsValidID ( _
bstrID As String, _
<OutAttribute> ByRef pfIsValidID As Boolean _
) As Integer
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.