次の方法で共有


PackagePolicy Constructors

Definition

Overloads

PackagePolicy(PackagePolicyMode)

Create the package policy

PackagePolicy(PackagePolicyMode, ICollection<String>)

Create the package policy

PackagePolicy(PackagePolicyMode)

Create the package policy

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=34)]
public PackagePolicy (Android.App.Admin.PackagePolicyMode policyType);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=34)>]
new Android.App.Admin.PackagePolicy : Android.App.Admin.PackagePolicyMode -> Android.App.Admin.PackagePolicy

Parameters

policyType
PackagePolicyMode

indicates how to interpret this policy

Attributes

Remarks

Create the package policy

Java documentation for android.app.admin.PackagePolicy.PackagePolicy(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PackagePolicy(PackagePolicyMode, ICollection<String>)

Create the package policy

[Android.Runtime.Register(".ctor", "(ILjava/util/Set;)V", "", ApiSince=34)]
public PackagePolicy (Android.App.Admin.PackagePolicyMode policyType, System.Collections.Generic.ICollection<string> packageNames);
[<Android.Runtime.Register(".ctor", "(ILjava/util/Set;)V", "", ApiSince=34)>]
new Android.App.Admin.PackagePolicy : Android.App.Admin.PackagePolicyMode * System.Collections.Generic.ICollection<string> -> Android.App.Admin.PackagePolicy

Parameters

policyType
PackagePolicyMode

indicates how to interpret this policy

packageNames
ICollection<String>

allowlist or a denylist, based on policyType

Attributes

Remarks

Create the package policy

Java documentation for android.app.admin.PackagePolicy.PackagePolicy(int, java.util.Set<java.lang.String>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to