AvalonEdit
VerifyAccess Method
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentVerifyAccess()()()()
Verifies that the current thread is the documents owner thread. Throws an InvalidOperationException if the wrong thread accesses the TextDocument.
Declaration Syntax
C#Visual BasicVisual C++
public void VerifyAccess()
Public Sub VerifyAccess
public:
void VerifyAccess()
Remarks

The TextDocument class is not thread-safe. A document instance expects to have a single owner thread and will throw an InvalidOperationException when accessed from another thread. It is possible to change the owner thread using the SetOwnerThread(Thread) method.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238