IVsTextEditorPropertyContainer.GetProperty(VSEDITPROPID, Object) Methode

Definition

Gibt die angegebene Texteditor-Eigenschaft zurück.

public:
 int GetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, [Runtime::InteropServices::Out] System::Object ^ % pvar);
int GetProperty(Microsoft::VisualStudio::TextManager::Interop::VSEDITPROPID idProp, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);
public int GetProperty (Microsoft.VisualStudio.TextManager.Interop.VSEDITPROPID idProp, out object pvar);
abstract member GetProperty : Microsoft.VisualStudio.TextManager.Interop.VSEDITPROPID * obj -> int
Public Function GetProperty (idProp As VSEDITPROPID, ByRef pvar As Object) As Integer

Parameter

idProp
VSEDITPROPID

[in] Zurückzugebende Eigenschaft. Eine Liste der idprop-Werte finden Sie unter VSEDITPROPID.

pvar
Object

[out] Variante, die die zurückgegebenen Eigenschafteninformationen enthält.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus textmgr. idl:

HRESULT IVsTextEditorPropertyContainer::GetProperty(  
   [in] VSEDITPROPID idProp,   
   [out] VARIANT *pvar  
);  

Gilt für