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クラス次のプロパティがあります。
| プロパティ | アクセスの種類 | 説明 |
|---|---|---|
| 読み取り専用 | Gets the sum audio and video bitrate of the video. | |
| 読み取り専用 | Gets the directors of the video. | |
| 読み取り専用 | Gets the duration of the video. | |
| 読み取り専用 | Gets the height of the video. | |
| 読み取り専用 | Gets the collection of keywords associated with the video. | |
| 読み取り専用 | Gets the latitude coordinate where the video was shot. | |
| 読み取り専用 | Gets the longitude coordinate where the video was shot. | |
| 読み取り専用 | Gets a VideoOrientation value that indicates how the video should be rotated to display it correctly. | |
| 読み取り専用 | Gets the producers of the video. | |
| 読み取り/書き込み | Gets or sets the publisher of the video. | |
| 読み取り/書き込み | Gets the rating associated with the video. | |
| 読み取り/書き込み | Gets or sets the subtitle of the video. | |
| 読み取り/書き込み | Gets or sets the title of the video. | |
| 読み取り専用 | Gets the width of the video. | |
| 読み取り専用 | Gets the script writers for the video. | |
| 読み取り/書き込み | Gets or sets the year that the video was shot or released. |
注釈
項目 (フォルダーのファイルなど)、または可能な場合は同期的に VideoProperties プロパティを使用して、非同期的に Properties プロパティから getVideoPropertiesAsync メソッドを使用する VideoProperties オブジェクトにアクセスできます。
次のいずれかのメソッドとプロパティを使用して VideoProperties オブジェクトを取得できます。
- 使用可能な場合、Properties プロパティを使用してアクセスできる StorageItemContentProperties.getVideoPropertiesAsync メソッド。
- FileInformation.videoProperties プロパティ
- FolderInformation.videoProperties プロパティ
注 別のアプリケーション (Microsoft Word など) で定義されたプロパティ ハンドラーを使用して取得または設定されたプロパティは、アクセスできない場合があります。代わりに、システム インデックスによってサポートされているファイル クエリを使用して、これらのプロパティの取得を試行できます。 詳細については、QueryOptions のトピックを参照してください。
プロパティへのアクセスに関するその他のコード サンプルについては、ファイル アクセスのサンプルを参照してください。
例
この例では、Year や Rating などのビデオ プロパティを含む、ファイルのプロパティを取得する方法を示します。
GetVideoPropertiesAsync が完了すると、videoProperties は VideoProperties オブジェクトを取得します。
この例では、file は、プロパティを取得するファイルを表す StorageFile を格納しています。
要件
|
サポートされている最小のクライアント | Windows 8 [Windows ストア アプリのみ] |
|---|---|
|
サポートされている最小のサーバー | Windows Server 2012 [Windows ストア アプリのみ] |
|
サポートされている最小の電話 | Windows Phone 8 |
|
名前空間 |
|
|
メタデータ |
|
参照
- StorageItemContentProperties.getVideoPropertiesAsync method
- Windows.Storage.BulkAccess.FileInformation.videoProperties property
- Windows.Storage.BulkAccess.FolderInformation.videoProperties property
- Windows.Storage.BulkAccess.IStorageItemInformation.VideoProperties property