DataProtectionPermission.Flags Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the data and memory protection 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
Property Value
A bitwise combination of the DataProtectionPermissionFlags values.
Exceptions
The specified value is not a valid combination of the DataProtectionPermissionFlags values.
Examples
The following code example shows the use of the Flags property. This code example is part of a larger example provided for the DataProtectionPermission class.
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())
Remarks
This property specifies whether the Protect
and Unprotect
methods of the ProtectedData and ProtectedMemory classes can be used.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기