Executes a TYPECHAR on the current command target chain.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Function TypeChar ( _
ch As Char _
) As Integer
'使用
Dim instance As ViewFilter
Dim ch As Char
Dim returnValue As Integer
returnValue = instance.TypeChar(ch)
public int TypeChar(
char ch
)
public:
int TypeChar(
wchar_t ch
)
public function TypeChar(
ch : char
) : int
Parameters
ch
Type: System.Char[in] The character command that is to be executed. This can only be a character that can be typed.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
This method is used to insert a character command into the command target chain by calling the ExecCommand method. This is done when the character command may have been consumed by a handler in the language service but the language service wants the character to also be handled as a normal command.
Permissions
- 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.