Share via


WebBrowserPermission.IsUnrestricted 方法

定義

傳回值,指出目前的權限是否不受限制。

public:
 virtual bool IsUnrestricted();
public bool IsUnrestricted ();
abstract member IsUnrestricted : unit -> bool
override this.IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean

傳回

如果 Level 屬性設定為 Unrestricted,則為 true,否則為 false

實作

範例

下列程式碼範例示範如何使用 IsUnrestricted 方法。

bool isUnrestricted = webBrowserPermission.IsUnrestricted();
Dim isUnrestricted As Boolean = webBrowserPermission.IsUnrestricted()

備註

不受限制的許可權代表存取許可權所保護的任何和所有資源。

這個類別的成員在 XAML 中不常使用,或無法在 XAML 中使用。

適用於