IXamlDirect.SetDateTimeProperty(Object, XamlPropertyIndex, DateTime) 方法

定義

設定特定IXamlDirectDateTimeOffset屬性值。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 void SetDateTimeProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, DateTime value);
void SetDateTimeProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, DateTime const& value);
public void SetDateTimeProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, System.DateTimeOffset value);
Public Sub SetDateTimeProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As DateTimeOffset)

參數

xamlDirectObject
Object

Platform::Object

IInspectable

特定 IXamlDirect的參考。

propertyIndex
XamlPropertyIndex

DateTimeOffset屬性的參考,要從XamlPropertyIndex列舉中支援的屬性清單中設定值。

value
DateTime DateTimeOffset

要設定為指定屬性的 DateTimeOffset 值。

適用於

另請參閱