Class Security
Data class that defines the syntax for security scope within the C# language.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp.FormattedSyntax
Assembly: CodeFactory.DotNet.dll
Syntax
public static class Security
Fields
| Improve this Doc View SourceInternal
Security scope that allows access to types and members only within files in the same assembly.
Declaration
public const string Internal = "internal"
Field Value
Type | Description |
---|---|
string |
Private
Security scope that allows access only within the scope of the body of a class or structure.
Declaration
public const string Private = "private"
Field Value
Type | Description |
---|---|
string |
PrivateProtected
Security scope that allows access only within the containing class or types that derive from the containing class. (Note: Only in version 7.2 or later of the C# language)
Declaration
public const string PrivateProtected = "private protected"
Field Value
Type | Description |
---|---|
string |
Protected
Security scope that allows access with the target class and any classes that derived from that class.
Declaration
public const string Protected = "protected"
Field Value
Type | Description |
---|---|
string |
ProtectedInternal
Security scope limited access to the current assembly or types derived from the containing class.
Declaration
public const string ProtectedInternal = "protected internal"
Field Value
Type | Description |
---|---|
string |
Public
Security scope that allows access to types and members and is the least restrictive security type.
Declaration
public const string Public = "public"
Field Value
Type | Description |
---|---|
string |