共用方式為


XamlDirect.GetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex) 方法

定義

取得特定IXamlDirectObjectDateTimeOffset屬性值。

public:
 virtual DateTime GetDateTimeProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex) = GetDateTimeProperty;
DateTime GetDateTimeProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public System.DateTimeOffset GetDateTimeProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex);
function getDateTimeProperty(xamlDirectObject, propertyIndex)
Public Function GetDateTimeProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex) As DateTimeOffset

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

DateTimeOffset屬性的參考,可從XamlPropertyIndex列舉中支援的屬性清單中取得 的值。

傳回

指定之屬性的DateTimeOffset值。

適用於

另請參閱