IBraceCompletionContext.AllowOverType 方法
Called by the editor when the closing brace character has been typed. It does not occur if there is any non-whitespace character between the caret and the closing brace.
命名空間: Microsoft.VisualStudio.Text.BraceCompletion
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Function AllowOverType ( _
session As IBraceCompletionSession _
) As Boolean
bool AllowOverType(
IBraceCompletionSession session
)
bool AllowOverType(
IBraceCompletionSession^ session
)
abstract AllowOverType :
session:IBraceCompletionSession -> bool
function AllowOverType(
session : IBraceCompletionSession
) : boolean
參數
session
類型:Microsoft.VisualStudio.Text.BraceCompletion.IBraceCompletionSessionThe default brace completion session
傳回值
類型:Boolean
Returns true if the context is a valid overtype scenario, otherwise false.
備註
The closing brace character will not be inserted into the buffer until after this method returns.
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。