IVsUIDataSource.QueryValue(String, String[], UInt32[], Object[]) 方法

定义

返回属性的类型、格式和值。

int QueryValue(std::wstring const & prop, std::Array <std::wstring const &> const & pTypeName, std::Array <unsigned int> const & pDataFormat, std::Array <winrt::Windows::Foundation::IInspectable const &> const & pValue);
public int QueryValue (string prop, string[] pTypeName, uint[] pDataFormat, object[] pValue);
abstract member QueryValue : string * string[] * uint32[] * obj[] -> int
Public Function QueryValue (prop As String, Optional pTypeName As String(), Optional pDataFormat As UInteger(), Optional pValue As Object()) As Integer

参数

prop
String

中属性的名称

pTypeName
String[]

弄要返回类型名称的位置

pDataFormat
UInt32[]

弄格式返回的位置

pValue
Object[]

弄用于返回指向属性值接口的指针的位置。

返回

Int32

如果返回了信息,则返回 S_OK。

适用于