System.Security.SecurityTreatAsSafeAttribute Class

Identifies which of the nonpublic System.Security.SecurityCriticalAttribute members are accessible by transparent code within the assembly.

See Also: SecurityTreatAsSafeAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Delegate | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)]
[System.Obsolete("Use the SecuritySafeCriticalAttribute instead")]
public sealed class SecurityTreatAsSafeAttribute : Attribute

Remarks

Types or members marked with the System.Security.SecurityCriticalAttribute attribute and the System.Security.SecurityTreatAsSafeAttribute attribute can be accessed by types and members within the assembly that are marked with the System.Security.SecurityTransparentAttribute attribute.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0