IBlockContextProvider.TryCreateBlockContextSourceAsync Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Verilen metin arabelleği için bir blok bağlamı kaynağı oluşturur.
public:
System::Threading::Tasks::Task<Microsoft::VisualStudio::Text::Adornments::IBlockContextSource ^> ^ TryCreateBlockContextSourceAsync(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Text.Adornments.IBlockContextSource> TryCreateBlockContextSourceAsync (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, System.Threading.CancellationToken token);
abstract member TryCreateBlockContextSourceAsync : Microsoft.VisualStudio.Text.ITextBuffer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Text.Adornments.IBlockContextSource>
Public Function TryCreateBlockContextSourceAsync (textBuffer As ITextBuffer, token As CancellationToken) As Task(Of IBlockContextSource)
Parametreler
- textBuffer
- ITextBuffer
Sağlayıcının oluşturulacağı metin arabelleği.
- token
- CancellationToken
Bu zaman uyumsuz yöntem çağrısının iptal belirteci.
Döndürülenler
Geçerli bir IBlockContextSource örnek veya hiçbiri oluşturulmadıysa null.