ICustomPropertyProvider.GetIndexedProperty(String, TypeName) 方法

定義

藉由指定屬性名稱和索引集合的類型,取得自訂屬性的 ICustomProperty 支持對象。

public:
 ICustomProperty ^ GetIndexedProperty(Platform::String ^ name, TypeName type);
ICustomProperty GetIndexedProperty(winrt::hstring const& name, TypeName const& type);
public ICustomProperty GetIndexedProperty(string name, System.Type type);
function getIndexedProperty(name, type)
Public Function GetIndexedProperty (name As String, type As Type) As ICustomProperty

參數

name
String

Platform::String

winrt::hstring

要取得支持對象的屬性名稱。

type
TypeName Type

索引集合的類型,指定為 TypeName 包裝函式。

傳回

自訂屬性或 nullptr傳回的支持對象。

適用於

另請參閱