PolicyStatement Constructors
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.
Initializes a new instance of the PolicyStatement class.
Overloads
| PolicyStatement(PermissionSet) |
Obsolete.
Initializes a new instance of the PolicyStatement class with the specified PermissionSet. |
| PolicyStatement(PermissionSet, PolicyStatementAttribute) |
Obsolete.
Initializes a new instance of the PolicyStatement class with the specified PermissionSet and attributes. |
PolicyStatement(PermissionSet)
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
Caution
Code Access Security is not supported or honored by the runtime.
Initializes a new instance of the PolicyStatement class with the specified PermissionSet.
public:
PolicyStatement(System::Security::PermissionSet ^ permSet);
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public PolicyStatement(System.Security.PermissionSet permSet);
public PolicyStatement(System.Security.PermissionSet permSet);
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Policy.PolicyStatement : System.Security.PermissionSet -> System.Security.Policy.PolicyStatement
new System.Security.Policy.PolicyStatement : System.Security.PermissionSet -> System.Security.Policy.PolicyStatement
Public Sub New (permSet As PermissionSet)
Parameters
- permSet
- PermissionSet
The PermissionSet with which to initialize the new instance.
- Attributes
Remarks
Caution
Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.
Applies to
PolicyStatement(PermissionSet, PolicyStatementAttribute)
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
Caution
Code Access Security is not supported or honored by the runtime.
Initializes a new instance of the PolicyStatement class with the specified PermissionSet and attributes.
public:
PolicyStatement(System::Security::PermissionSet ^ permSet, System::Security::Policy::PolicyStatementAttribute attributes);
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public PolicyStatement(System.Security.PermissionSet permSet, System.Security.Policy.PolicyStatementAttribute attributes);
public PolicyStatement(System.Security.PermissionSet permSet, System.Security.Policy.PolicyStatementAttribute attributes);
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Policy.PolicyStatement : System.Security.PermissionSet * System.Security.Policy.PolicyStatementAttribute -> System.Security.Policy.PolicyStatement
new System.Security.Policy.PolicyStatement : System.Security.PermissionSet * System.Security.Policy.PolicyStatementAttribute -> System.Security.Policy.PolicyStatement
Public Sub New (permSet As PermissionSet, attributes As PolicyStatementAttribute)
Parameters
- permSet
- PermissionSet
The PermissionSet with which to initialize the new instance.
- attributes
- PolicyStatementAttribute
A bitwise combination of the PolicyStatementAttribute values.
- Attributes
Remarks
Caution
Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.