Skip to content

Commit c455b85

Browse files
jkotasRon Petrusha
authored andcommitted
Update SecurityTransparentAttribute.xml (#3312)
* Update SecurityTransparentAttribute.xml Add note that partial trust code is no longer supported. * Update xml/System.Security/SecurityTransparentAttribute.xml * Update xml/System.Security/SecurityTransparentAttribute.xml Co-Authored-By: Ron Petrusha <[email protected]> * Add the note to all CAS attributes
1 parent ef4744f commit c455b85

33 files changed

+108
-2
lines changed

xml/System.Security.Permissions/CodeAccessSecurityAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
<format type="text/markdown"><![CDATA[
5050
5151
## Remarks
52+
> [!IMPORTANT]
53+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
54+
5255
This attribute class associates a <xref:System.Security.Permissions.SecurityAction>, for example, `Demand`, with a custom security attribute.
5356
5457
The types that derive from <xref:System.Security.Permissions.CodeAccessSecurityAttribute> are used to help restrict access to resources or securable operations.

xml/System.Security.Permissions/DataProtectionPermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
<format type="text/markdown"><![CDATA[
3333
3434
## Remarks
35+
> [!IMPORTANT]
36+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
37+
3538
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> value that is used.
3639
3740
The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. <xref:System.Security.Permissions.DataProtectionPermissionAttribute> is used only for declarative security. For imperative security, use the <xref:System.Security.Permissions.DataProtectionPermission> class.

xml/System.Security.Permissions/EnvironmentPermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<format type="text/markdown"><![CDATA[
4040
4141
## Remarks
42+
> [!IMPORTANT]
43+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
44+
4245
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> that is used.
4346
4447
The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.

xml/System.Security.Permissions/FileDialogPermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<format type="text/markdown"><![CDATA[
4040
4141
## Remarks
42+
> [!IMPORTANT]
43+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
44+
4245
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> that is used.
4346
4447
The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.

xml/System.Security.Permissions/FileIOPermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<format type="text/markdown"><![CDATA[
4040
4141
## Remarks
42+
> [!IMPORTANT]
43+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
44+
4245
Files and directories are specified using absolute paths. When accessing files, a security check is performed when the file is created or opened. The security check is not done again unless the file is closed and reopened. Checking permissions when the file is first accessed minimizes the impact of the security check on application performance because opening a file happens only once, while reading and writing can happen multiple times.
4346
4447
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> that is used.

xml/System.Security.Permissions/GacIdentityPermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<format type="text/markdown"><![CDATA[
3939
4040
## Remarks
41+
> [!IMPORTANT]
42+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
43+
4144
This class is used to ensure that callers are registered in the global assembly cache (GAC).
4245
4346
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> value that is used.

xml/System.Security.Permissions/HostProtectionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<format type="text/markdown"><![CDATA[
3939
4040
## Remarks
41+
> [!IMPORTANT]
42+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
43+
4144
This attribute affects only unmanaged applications that host the common language runtime and implement host protection, such as SQL Server. If the code is run in a client application or on a server that is not host-protected, the attribute "evaporates"; it is not detected and therefore not applied. When applied, the security action results in the creation of a link demand based on the host resources the class or method exposes.
4245
4346
> [!IMPORTANT]

xml/System.Security.Permissions/IsolatedStorageFilePermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<format type="text/markdown"><![CDATA[
4040
4141
## Remarks
42+
> [!IMPORTANT]
43+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
44+
4245
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> that is used.
4346
4447
The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.

xml/System.Security.Permissions/IsolatedStoragePermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<format type="text/markdown"><![CDATA[
4040
4141
## Remarks
42+
> [!IMPORTANT]
43+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
44+
4245
This class is an abstract base class. This class is never used instantiated; instead, classes that extend it and represent access to a particular type of isolated storage are used.
4346
4447
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> that is used.

xml/System.Security.Permissions/KeyContainerPermissionAttribute.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<format type="text/markdown"><![CDATA[
3939
4040
## Remarks
41+
> [!IMPORTANT]
42+
> Partially trusted code is no longer supported. This attribute has no effect in .NET Core.
43+
4144
The scope of the declaration that is allowed depends on the <xref:System.Security.Permissions.SecurityAction> value that is used.
4245
4346
The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. <xref:System.Security.Permissions.KeyContainerPermissionAttribute> is used only for declarative security. For imperative security, use the <xref:System.Security.Permissions.KeyContainerPermission> class.

0 commit comments

Comments
 (0)