共用方式為


IVsThreadSafeTextView Interface

This is a thread-safe subset of IVsTextView.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
<GuidAttribute("FEC3BF2A-7833-4777-AE74-5FFF86D6794E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsThreadSafeTextView
'用途
Dim instance As IVsThreadSafeTextView
[GuidAttribute("FEC3BF2A-7833-4777-AE74-5FFF86D6794E")]
[InterfaceTypeAttribute()]
public interface IVsThreadSafeTextView
[GuidAttribute(L"FEC3BF2A-7833-4777-AE74-5FFF86D6794E")]
[InterfaceTypeAttribute()]
public interface class IVsThreadSafeTextView
[<GuidAttribute("FEC3BF2A-7833-4777-AE74-5FFF86D6794E")>]
[<InterfaceTypeAttribute()>]
type IVsThreadSafeTextView =  interface end
public interface IVsThreadSafeTextView

Remarks

These methods simply post messages to the main thread, which then calls the regular handlers.

See Also

Reference

IVsThreadSafeTextView Members

Microsoft.VisualStudio.TextManager.Interop Namespace