共用方式為


IVsWindowFrame.GetProperty(Int32, Object) Method

Definition

Returns a window 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] Identifier of the property whose values are taken from the __VSFPROPID enumeration.

pvar
Object

[out] Pointer to a VARIANT.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowFrame::GetProperty(  
   [in] VSFPROPID propid,  
   [out] VARIANT *pvar  
);  

Applies to