다음을 통해 공유


ITextBuffer.TakeThreadOwnership Method

Definition

Claims ownership of this buffer for the current thread. All subsequent modifications of this ITextBuffer must be made from the current thread, or else an InvalidOperationException will be raised.

public:
 void TakeThreadOwnership();
public:
 void TakeThreadOwnership();
void TakeThreadOwnership();
public void TakeThreadOwnership ();
abstract member TakeThreadOwnership : unit -> unit
Public Sub TakeThreadOwnership ()

Exceptions

This method has been called previously from a different thread, or a ITextBufferEdit object is active for this text buffer.

Applies to