共用方式為


ITableEntry.TrySetValue(String, Object) 方法

定義

如果這個專案具有與) 相關聯的數據,請設定與指定數據行相關聯的 keyName 數據 (。

public:
 bool TrySetValue(System::String ^ keyName, System::Object ^ content);
public:
 bool TrySetValue(Platform::String ^ keyName, Platform::Object ^ content);
bool TrySetValue(std::wstring const & keyName, winrt::Windows::Foundation::IInspectable const & content);
public bool TrySetValue (string keyName, object content);
abstract member TrySetValue : string * obj -> bool
Public Function TrySetValue (keyName As String, content As Object) As Boolean

參數

keyName
String

索引鍵名稱。

content
Object

內容。

傳回

如果值已變更,則為 true。

適用於