共用方式為


IVsUIDataSource.QueryValue(String, String[], UInt32[], Object[]) Method

Definition

Returns the type, format and value of a property.

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

Parameters

prop
String

[in] The name of the property

pTypeName
String[]

[out] Location to return the type name

pDataFormat
UInt32[]

[out] Location to return the format

pValue
Object[]

[out] Location to return a pointer to the interface for the property value.

Returns

Returns S_OK if the information was returned.

Applies to