共用方式為


FilePickerFileTypesOrderedMap.Insert(String, IVector<String>) 方法

定義

在顯示名稱和相關聯檔案類型的對應集合中插入或取代專案。

public:
 virtual bool Insert(Platform::String ^ key, IVector<Platform::String ^> ^ value) = IMap<Platform::String ^, IVector<Platform::String ^> ^>::Insert;
bool Insert(winrt::hstring const& key, IVector<winrt::hstring> const& value);
public bool Insert(string key, IList<string> value);
function insert(key, value)
Public Function Insert (key As String, value As IList(Of String)) As Boolean

參數

key
String

Platform::String

winrt::hstring

與要插入之專案相關聯的索引鍵。

value

IVector<String>

IList<String>

IVector<Platform::String>

IVector<winrt::hstring>

要插入的項目。

傳回

Boolean

bool

如果具有指定索引鍵的專案為現有專案且已取代,則為true;否則為 false

實作

適用於

另請參閱