XamlLoadPermission.Includes(XamlAccessLevel) 方法

定义

返回此 XamlLoadPermission 是否在其 XamlAccessLevel 列表中包含指定的 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

返回

Boolean

如果 requestedAccess 是当前 AllowedAccessXamlLoadPermission 列表中的一项,则为 true。 否则为 false

例外

requestedAccess 为 null。

适用于