このトピックはまだ評価されていません - このトピックを評価する

VideoProperties Class

項目 (ファイルやフォルダーなど) のビデオ関連プロパティにアクセスできるようにします。

構文

Public NotInheritable Class VideoProperties  
    Inherits Object
    Implements IStorageItemExtraProperties

属性

MarshalingBehaviorAttribute(Agile)
VersionAttribute(NTDDI_WIN8)

メンバー

VideoPropertiesクラス には次の種類のメンバーが含まれます:

メソッド

The VideoProperties クラス には次のメソッドがあります。C#、Visual Basic、C++ では、次のもののメソッドも継承しますObject クラス.

メソッド説明
RetrievePropertiesAsync Retrieves the specified properties associated with the item.
SavePropertiesAsync() Saves all properties associated with the item.
SavePropertiesAsync(IIterable(IKeyValuePair)) Saves the specified properties and values associated with the item.

 

プロパティ

VideoPropertiesクラス次のプロパティがあります。

プロパティアクセスの種類説明

Bitrate

読み取り専用Gets the sum audio and video bitrate of the video.

Directors

読み取り専用Gets the directors of the video.

Duration

読み取り専用Gets the duration of the video.

Height

読み取り専用Gets the height of the video.

Keywords

読み取り専用Gets the collection of keywords associated with the video.

Latitude

読み取り専用Gets the latitude coordinate where the video was shot.

Longitude

読み取り専用Gets the longitude coordinate where the video was shot.

Orientation

読み取り専用Gets a VideoOrientation value that indicates how the video should be rotated to display it correctly.

Producers

読み取り専用Gets the producers of the video.

Publisher

読み取り/書き込みGets or sets the publisher of the video.

Rating

読み取り/書き込みGets the rating associated with the video.

Subtitle

読み取り/書き込みGets or sets the subtitle of the video.

Title

読み取り/書き込みGets or sets the title of the video.

Width

読み取り専用Gets the width of the video.

Writers

読み取り専用Gets the script writers for the video.

Year

読み取り/書き込みGets or sets the year that the video was shot or released.

 

注釈

項目 (フォルダーのファイルなど)、または可能な場合は同期的に VideoProperties プロパティを使用して、非同期的に Properties プロパティから getVideoPropertiesAsync メソッドを使用する VideoProperties オブジェクトにアクセスできます。

次のいずれかのメソッドとプロパティを使用して VideoProperties オブジェクトを取得できます。

  別のアプリケーション (Microsoft Word など) で定義されたプロパティ ハンドラーを使用して取得または設定されたプロパティは、アクセスできない場合があります。代わりに、システム インデックスによってサポートされているファイル クエリを使用して、これらのプロパティの取得を試行できます。 詳細については、QueryOptions のトピックを参照してください。

プロパティへのアクセスに関するその他のコード サンプルについては、ファイル アクセスのサンプルを参照してください。

この例では、YearRating などのビデオ プロパティを含む、ファイルのプロパティを取得する方法を示します。

現在、コード例がないか、この言語はサポートされていません。

GetVideoPropertiesAsync が完了すると、videoPropertiesVideoProperties オブジェクトを取得します。

この例では、file は、プロパティを取得するファイルを表す StorageFile を格納しています。

要件

サポートされている最小のクライアント

Windows 8 [Windows ストア アプリのみ]

サポートされている最小のサーバー

Windows Server 2012 [Windows ストア アプリのみ]

サポートされている最小の電話

Windows Phone 8

名前空間

Windows.Storage.FileProperties
Windows::Storage::FileProperties [C++]

メタデータ

Windows.winmd

参照

StorageItemContentProperties.getVideoPropertiesAsync method
Windows.Storage.BulkAccess.FileInformation.videoProperties property
Windows.Storage.BulkAccess.FolderInformation.videoProperties property
Windows.Storage.BulkAccess.IStorageItemInformation.VideoProperties property

 

 

この情報は役に立ちましたか。
(残り 1500 文字)
© 2013 Microsoft. All rights reserved.