CastingSource.PreferredSourceUri Eigenschaft

Definition

Ruft einen alternativen URI für den Inhalt zur Verwendung mit DLNA ByRef ab oder legt diesen fest.

public:
 property Uri ^ PreferredSourceUri { Uri ^ get(); void set(Uri ^ value); };
Uri PreferredSourceUri();

void PreferredSourceUri(Uri value);
public System.Uri PreferredSourceUri { get; set; }
var uri = castingSource.preferredSourceUri;
castingSource.preferredSourceUri = uri;
Public Property PreferredSourceUri As Uri

Eigenschaftswert

Der alternative URI für den Inhalt.

Beispiele

#include <winrt/Windows.Media.Casting.h>
...
Windows::UI::Xaml::Controls::MediaElement video;
video.Source(Windows::Foundation::Uri{ L"http://www.contoso.com/videos/video.mp4" });
video.GetAsCastingSource().PreferredSourceUri(Windows::Foundation::Uri{ L"http://www.contoso.com/catalogid=1234" });

Gilt für: