Partilhar via


IVsWindowView.GetProperty(Int32, Object) Method

Definition

Retrieves the value of a property.

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

Parameters

propid
Int32

[in] Integer. The property to retrieve. A value from the __VSVPROPID enumeration.

pvar
Object

[out] Pointer to a VARIANT containing the property's value.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowView::GetProperty(  
   [in] VSVPROPID propid,   
   [out] VARIANT *pvar  
);  

Applies to