IXamlDirect.GetDateTimeProperty(Object, XamlPropertyIndex) メソッド

定義

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

このドキュメントは、WinUI 2 for UWP に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

public:
 DateTime GetDateTimeProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex);
DateTime GetDateTimeProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public System.DateTimeOffset GetDateTimeProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex);
Public Function GetDateTimeProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex) As DateTimeOffset

パラメーター

xamlDirectObject
Object

Platform::Object

IInspectable

特定の IXamlDirect への参照。

propertyIndex
XamlPropertyIndex

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

戻り値

指定したプロパティの DateTimeOffset 値。

適用対象

こちらもご覧ください