Udostępnij za pośrednictwem


LauncherOptions.TreatAsUntrusted Property

Definition

Gets or sets a value that indicates whether the system should display a warning that the file or URI is potentially unsafe when starting the app associated with a file or URI.

public:
 property bool TreatAsUntrusted { bool get(); void set(bool value); };
bool TreatAsUntrusted();

void TreatAsUntrusted(bool value);
public bool TreatAsUntrusted { get; set; }
var boolean = launcherOptions.treatAsUntrusted;
launcherOptions.treatAsUntrusted = boolean;
Public Property TreatAsUntrusted As Boolean

Property Value

Boolean

bool

True if the warning should be displayed; otherwise false.

Examples

See the code example in the Launcher.LaunchUriAsync(Uri, LauncherOptions) topic.

Remarks

Important

This property is only implemented on Desktop devices.

Applies to

See also