DataProtectionPermission.Flags プロパティ

定義

データおよびメモリの保護フラグを取得または設定します。

public:
 property System::Security::Permissions::DataProtectionPermissionFlags Flags { System::Security::Permissions::DataProtectionPermissionFlags get(); void set(System::Security::Permissions::DataProtectionPermissionFlags value); };
public System.Security.Permissions.DataProtectionPermissionFlags Flags { get; set; }
member this.Flags : System.Security.Permissions.DataProtectionPermissionFlags with get, set
Public Property Flags As DataProtectionPermissionFlags

プロパティ値

DataProtectionPermissionFlags 値のビットごとの組み合わせ。

例外

指定された値は、DataProtectionPermissionFlags 値の有効な組み合わせではありません。

次のコード例は、 プロパティの使用方法を Flags 示しています。 このコード例は、DataProtectionPermission クラスのために提供されている大規模な例の一部です。

Console::WriteLine( "Creating the intersection of the second and "
"first permissions." );
sp4 = dynamic_cast<DataProtectionPermission^>(sp2->Intersect( sp1 ));
Console::WriteLine( "The value of the Flags property is: {0}", sp4->Flags );
Console.WriteLine("Creating the intersection of the second and " +
    "first permissions.");
sp4 = (DataProtectionPermission)sp2.Intersect(sp1);
Console.WriteLine("The value of the Flags property is: " +
    sp4.Flags.ToString());
Console.WriteLine("Creating the intersection of the second and " + "first permissions.")
sp4 = CType(sp2.Intersect(sp1), DataProtectionPermission)
Console.WriteLine("The value of the Flags property is: " + sp4.Flags.ToString())

注釈

このプロパティは、 クラスと クラスの Protect メソッドと UnprotectProtectedMemory メソッドをProtectedData使用できるかどうかを指定します。

適用対象