IXamlDirect.SetDateTimeProperty(Object, XamlPropertyIndex, DateTime) メソッド

定義

特定の IXamlDirectDateTimeOffset プロパティの値を設定します。

このドキュメントは、WinUI 2 for UWP に適用されます (Windows アプリ SDKWinUI については、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

XamlPropertyIndex 列挙型でサポートされているプロパティの一覧から値を設定する DateTimeOffset プロパティへの参照。

value
DateTime DateTimeOffset

指定したプロパティに設定する DateTimeOffset 値。

適用対象

こちらもご覧ください