MediaStreamSamplePropertySet クラス

定義

MediaStreamSample のプロパティが含まれています。

public ref class MediaStreamSamplePropertySet sealed : IIterable<IKeyValuePair<Platform::Guid, Platform::Object ^> ^>, IMap<Platform::Guid, Platform::Object ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.HasVariant]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MediaStreamSamplePropertySet final : IIterable<IKeyValuePair<winrt::guid, IInspectable const&>>, IMap<winrt::guid, IInspectable const&>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.HasVariant]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MediaStreamSamplePropertySet : IDictionary<Guid,object>, IEnumerable<KeyValuePair<Guid,object>>
Public NotInheritable Class MediaStreamSamplePropertySet
Implements IDictionary(Of Guid, Object), IEnumerable(Of KeyValuePair(Of Guid, Object))
継承
Object Platform::Object IInspectable MediaStreamSamplePropertySet
属性
実装
IDictionary<Guid,Object> IMap<Platform::Guid,Platform::Object> IMap<winrt::guid,IInspectable> IIterable<IKeyValuePair<K,V>> IEnumerable<KeyValuePair<K,V>> IEnumerable<KeyValuePair<Guid,Object>> IIterable<IKeyValuePair<Platform::Guid,Platform::Object>> IIterable<IKeyValuePair<winrt::guid,IInspectable>>

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

ユニバーサル Windows アプリでのメディア ストリーム ソースの使用例については、 MediaStreamSource サンプル を参照してください。

C# または Microsoft Visual Basic でのコレクションの列挙

C# または Microsoft Visual Basic では、MediaStreamSamplePropertySet オブジェクトを反復処理できます。 foreach 構文の使用など、多くの場合、コンパイラによってこのキャストが行われ、明示的に キャストするIEnumerable必要はありません。 GetEnumerator を呼び出す場合など、明示的にキャストする必要がある場合は、KeyValuePairの Guid と Object を制約として使用して、コレクション オブジェクトを IEnumerable<T>キャストします。

プロパティ

Size

プロパティ セットに含まれる項目の数を取得します。

メソッド

Clear()

プロパティ セットからすべての項目を削除します。

First()

プロパティ セット内の項目を列挙する反復子を返します。

GetView()

プロパティ セットの変更できないビューを取得します。

HasKey(Guid)

指定したキーがプロパティ セットに存在するかどうかを示します。

Insert(Guid, Object)

指定したキーと値をプロパティ セットに追加します。

Lookup(Guid)

指定したキーの値を取得します。

Remove(Guid)

プロパティ セットから項目を削除します。

適用対象

こちらもご覧ください