LanguageService.GetNameOfLocation Yöntem

Tanım

Verilen konumu içeren kapsayan öğenin adını döndürür.

public:
 virtual int GetNameOfLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ buffer, int line, int col, [Runtime::InteropServices::Out] System::String ^ % name, [Runtime::InteropServices::Out] int % lineOffset);
 virtual int GetNameOfLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & buffer, int line, int col, [Runtime::InteropServices::Out] std::wstring const & & name, [Runtime::InteropServices::Out] int & lineOffset);
public virtual int GetNameOfLocation (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer buffer, int line, int col, out string name, out int lineOffset);
abstract member GetNameOfLocation : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * int * int * string * int -> int
override this.GetNameOfLocation : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * int * int * string * int -> int
Public Overridable Function GetNameOfLocation (buffer As IVsTextBuffer, line As Integer, col As Integer, ByRef name As String, ByRef lineOffset As Integer) As Integer

Parametreler

buffer
IVsTextBuffer

'ndaki IVsTextBuffer Kaynak dosyayı tutan.

line
Int32

'ndaki Arabellekte istenen satır.

col
Int32

'ndaki Arabellekteki satırda istenen fark.

name
String

dışı Kapsayan öğenin adı.

lineOffset
Int32

dışı Kapsayan öğenin başından verilen satıra olan fark.

Döndürülenler

Int32

Başarılı olursa, döndürür S_OK ; Aksi takdirde, S_FALSE konum adlandırılmış bir varlık içinde değilse veya hata kodu döndürürse döndürür.

Uygulamalar

Açıklamalar

Kapsayan bir öğe genellikle bir yöntem, sınıf veya ad alanıdır.

Taban yöntemi, bir ad için null değer ve satır boşluğu için 0 döndürür.

Şunlara uygulanır