SystemPolicy.GetLockdownPolicy(String, SafeHandle) Method
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 lockdown policy as applied to a file.
public:
static System::Management::Automation::Security::SystemEnforcementMode GetLockdownPolicy(System::String ^ path, System::Runtime::InteropServices::SafeHandle ^ handle);
public static System.Management.Automation.Security.SystemEnforcementMode GetLockdownPolicy (string path, System.Runtime.InteropServices.SafeHandle handle);
static member GetLockdownPolicy : string * System.Runtime.InteropServices.SafeHandle -> System.Management.Automation.Security.SystemEnforcementMode
Public Shared Function GetLockdownPolicy (path As String, handle As SafeHandle) As SystemEnforcementMode
Parameters
- path
- String
- handle
- SafeHandle
Returns
An EnforcementMode that describes policy
Remarks
Always return SystemEnforcementMode.None in CSS (trusted)