|
91 | 91 | <Docs>
|
92 | 92 | <summary>Specifies the base attribute class for code access security.</summary>
|
93 | 93 | <remarks>
|
94 |
| - <format type="text/markdown"><]
|
99 | 99 |
|
100 |
| - This attribute class associates a <xref:System.Security.Permissions.SecurityAction>, for example, `Demand`, with a custom security attribute. |
101 |
| - |
102 |
| - The types that derive from <xref:System.Security.Permissions.CodeAccessSecurityAttribute> are used to help restrict access to resources or securable operations. |
103 |
| - |
| 100 | + This attribute class associates a <xref:System.Security.Permissions.SecurityAction>, for example, `Demand`, with a custom security attribute. |
| 101 | +
|
| 102 | + The types that derive from <xref:System.Security.Permissions.CodeAccessSecurityAttribute> are used to help restrict access to resources or securable operations. |
| 103 | +
|
104 | 104 | 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. Use the corresponding permission class derived from <xref:System.Security.CodeAccessPermission> for imperative security.
|
105 |
| - |
106 |
| -## Examples |
107 |
| - The following example shows a permission attribute derived from the <xref:System.Security.Permissions.CodeAccessSecurityAttribute> class. |
108 |
| - |
109 |
| - :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.Security.Permissions.CodeAccessSecurityAttribute/CPP/nameidpermissionattribute.cpp" id="Snippet1"::: |
110 |
| - :::code language="csharp" source="~/snippets/csharp/System.Security.Permissions/CodeAccessSecurityAttribute/Overview/nameidpermissionattribute.cs" id="Snippet1"::: |
111 |
| - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Security.Permissions.CodeAccessSecurityAttribute/VB/nameidpermissionattribute.vb" id="Snippet1"::: |
112 |
| - |
| 105 | +
|
113 | 106 | ]]></format>
|
114 | 107 | </remarks>
|
115 | 108 | <block subset="none" type="overrides">
|
|
172 | 165 | <param name="action">One of the <see cref="T:System.Security.Permissions.SecurityAction" /> values.</param>
|
173 | 166 | <summary>Initializes a new instance of <see cref="T:System.Security.Permissions.CodeAccessSecurityAttribute" /> with the specified <see cref="T:System.Security.Permissions.SecurityAction" />.</summary>
|
174 | 167 | <remarks>
|
175 |
| - <format type="text/markdown"><![CDATA[ |
176 |
| - |
177 |
| -## Remarks |
178 |
| - You cannot create an instance of this class. You must inherit from this class to make use of its functionality. |
179 |
| - |
| 168 | + <format type="text/markdown"><![CDATA[ |
| 169 | +
|
| 170 | +## Remarks |
| 171 | + You cannot create an instance of this class. You must inherit from this class to make use of its functionality. |
| 172 | +
|
180 | 173 | ]]></format>
|
181 | 174 | </remarks>
|
182 | 175 | <block subset="none" type="overrides">
|
|
0 commit comments