共用方式為


XamlLoadPermission.Includes(XamlAccessLevel) 方法

定義

傳回這個 XamlLoadPermissionXamlAccessLevel 清單中是否包括指定的 AllowedAccess

public:
 bool Includes(System::Xaml::Permissions::XamlAccessLevel ^ requestedAccess);
public bool Includes (System.Xaml.Permissions.XamlAccessLevel requestedAccess);
member this.Includes : System.Xaml.Permissions.XamlAccessLevel -> bool
Public Function Includes (requestedAccess As XamlAccessLevel) As Boolean

參數

requestedAccess
XamlAccessLevel

要檢查的特定 XamlAccessLevel

傳回

如果 requestedAccess 是目前 AllowedAccessXamlLoadPermission 清單中的項目,則為 true。 否則為 false

例外狀況

requestedAccess 為 null。

適用於