Have a question? Email Us or Call 1 (800) 936-2134
SubMain - CodeIt.Right The First Time! Home Products Services Download Purchase Support Community
RuleScopes Enumeration
CodeIt.Right SDK Class Library

RuleScopes Enumeration

The visibility of types or members to be checked by the rule.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Flags]
public enum RuleScopes

Remarks

Members

Member Name Description Value
None Indicates unknown scope. 0
New Indicates that only classes and class members declared with 'new' modifier will be checked by the rule. 1
Public Indicates that only public classes and class members will be checked by the rule. Public access is the most permissive access level. There are no restrictions on accessing public members. 2
Protected Indicates that only protected classes and class members will be checked by the rule. A protected member is accessible from within the class in which it is declared, and from within any class derived from the class that declared this member. 4
Internal Indicates that only internal classes and class members will be checked by the rule. Internal types or members are accessible only within files in the same assembly. 8
ProtectedInternal Indicates that only internal and protected classes and class members will be checked by the rule. 12
Private Indicates that only private classes and class members will be checked by the rule. Private members are accessible only within the body of the class or the struct in which they are declared. 16
Abstract Indicates that only abstract classes and class members will be checked by the rule. Abstract classes and class members that are incomplete and must be implemented in a derived class. 32
Sealed Indicates that only sealed classes will be checked by the rule. A sealed class cannot be used as a base class. For this reason, it cannot also be an abstract class. Sealed classes prevent derivation. 64
Static Indicates that only static classes and class members will be checked by the rule. A static class is basically the same as a non-static class, but a static class cannot be instantiated. Because there is no instance variable, the members of a static class can be accessed by using the class name itself. 128
Readonly Indicates that read-only fields and properties will be checked by the rule. A read-only field or property can be read but not written. 256
Virtual Indicates that only virtual method, property, indexer, or event will be checked by the rule. A virtual method, property, indexer, or event declaration are allowed to be overridden in a derived class. 512
Override Indicates that only overriden method, property, indexer, or event will be checked by the rule. Overriden members are extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event. 1024
Extern Indicates that only external method declarations will be checked by the rule. An external method is a method that is implemented externally (usually in unmanaged DLL library). 2048
Unsafe Indicates that only unsafe blocks will be checked by the rule. Unsafe blocks denote an unsafe context, which is required for any operation involving pointers. 4096
SpecialNameObsolete.   8192
Literal Indicates that only literals will be checked by the rule. A literals is a string, a number, or a date which directly represents a constant value. Literals have types , but they do not have names and they cannot be modified. 32768
Const Indicates that only constants will be checked by the rule. A constant is a field or local variable, which cannot be modified. 32896
Volatile Indicates that only volatile fields will be checked by the rule. A volatile field might be modified by multiple threads that are executing at the same time. 65536
WriteOnly Indicates that write-only properties will be checked by the rule. A write-only property can be written but not read. 262144
WithEvents Indicates that only WithEvents variables will be checked by the rule (Visual Basic). WithEvents keyword specifies that one or more declared member variables refer to an instance of a class that can raise events. 1048576
DefaultObsolete.   2097152
Any Indicates any scope from listed above. It's a maximum visibility. 3522559

Requirements

Namespace: SubMain.CodeItRight.Sdk.Core.Rules

Assembly: SubMain.CodeItRight.Sdk.Core (in SubMain.CodeItRight.Sdk.Core.dll)

See Also

SubMain.CodeItRight.Sdk.Core.Rules Namespace


 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |