task stringlengths 24 71 | input stringlengths 8 2.38k | output stringlengths 1 2.34k | options list | pageTitle stringlengths 4 140 | outputColName stringlengths 1 79 | url stringlengths 41 160 | wdcFile stringlengths 71 74 |
|---|---|---|---|---|---|---|---|
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1414 [Warning] CA1414: Mark boolean P/Invoke arguments with MarshalAs [Description] | The Boolean data type has multiple representations in unmanaged code. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1415 [Warning] CA1415: Declare P/Invokes correctly [Description] | This rule looks for operating system invoke method declarations that target Win32 functions that have a pointer to an OVERLAPPED structure parameter and the corresponding managed parameter is not a pointer to a System.Threading.NativeOverlapped structure. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1500 [Warning] CA1500: Variable names should not match field names [Description] | An instance method declares a parameter or a local variable whose name matches an instance field of the declaring type, leading to errors. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1501 [Warning] CA1501: Avoid excessive inheritance [Description] | A type is more than four levels deep in its inheritance hierarchy. Deeply nested type hierarchies can be difficult to follow, understand, and maintain. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1502 [Warning] CA1502: Avoid excessive complexity [Description] | This rule measures the number of linearly independent paths through the method, which is determined by the number and complexity of conditional branches. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1504 [Warning] CA1504: Review misleading field names [Description] | The name of an instance field starts with "s_", or the name of a static (Shared in Visual Basic) field starts with "m_". | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1505 [Warning] CA1505: Avoid unmaintainable code [Description] | A type or method has a low maintainability index value. A low maintainability index indicates that a type or method is probably difficult to maintain and would be a good candidate for redesign. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1506 [Warning] CA1506: Avoid excessive class coupling [Description] | This rule measures class coupling by counting the number of unique type references that a type or method contains. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1600 [Warning] CA1600: Do not use idle process priority [Description] | Do not set process priority to Idle. Processes that have System.Diagnostics.ProcessPriorityClass.Idle will occupy the CPU when it would otherwise be idle, and will therefore block standby. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1601 [Warning] CA1601: Do not use timers that prevent power state changes [Description] | Higher-frequency periodic activity will keep the CPU busy and interfere with power-saving idle timers that turn off the display and hard disks. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1700 [Warning] CA1700: Do not name enum values 'Reserved' [Description] | This rule assumes that an enumeration member that has a name that contains "reserved" is not currently used but is a placeholder to be renamed or removed in a future version. Renaming or removing a member is a breaking change. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1701 [Warning] CA1701: Resource string compound words should be cased correctly [Description] | Each word in the resource string is split into tokens based on the casing. Each contiguous two-token combination is checked by the Microsoft spelling checker library. If recognized, the word produces a violation of the rule. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1702 [Warning] CA1702: Compound words should be cased correctly [Description] | The name of an identifier contains multiple words, and at least one of the words appears to be a compound word that is not cased correctly. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1703 [Warning] CA1703: Resource strings should be spelled correctly [Description] | A resource string contains one or more words that are not recognized by the Microsoft spelling checker library. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1704 [Warning] CA1704: Identifiers should be spelled correctly [Description] | The name of an externally visible identifier contains one or more words that are not recognized by the Microsoft spelling checker library. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1707 [Warning] CA1707: Identifiers should not contain underscores [Description] | By convention, identifier names do not contain the underscore (_) character. This rule checks namespaces, types, members, and parameters. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1708 [Warning] CA1708: Identifiers should differ by more than case [Description] | Identifiers for namespaces, types, members, and parameters cannot differ only by case because languages that target the common language runtime are not required to be case-sensitive. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1709 [Warning] CA1709: Identifiers should be cased correctly [Description] | By convention, parameter names use camel casing and namespace, type, and member names use Pascal casing. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1710 [Warning] CA1710: Identifiers should have correct suffix [Description] | By convention, the names of types that extend certain base types or that implement certain interfaces, or types that are derived from these types, have a suffix that is associated with the base type or interface. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1711 [Warning] CA1711: Identifiers should not have incorrect suffix [Description] | By convention, only the names of types that extend certain base types or that implement certain interfaces, or types that are derived from these types, should end with specific reserved suffixes. Other type names should not use these reserved suffixes. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1712 [Warning] CA1712: Do not prefix enum values with type name [Description] | Names of enumeration members are not prefixed by using the type name because development tools are expected to provide type information. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1713 [Warning] CA1713: Events should not have before or after prefix [Description] | The name of an event starts with "Before" or "After". To name related events that are raised in a specific sequence, use the present or past tense to indicate the relative position in the sequence of actions. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1714 [Warning] CA1714: Flags enums should have plural names [Description] | A public enumeration has the System.FlagsAttribute attribute, and its name does not end in "s". Types that are marked by using FlagsAttribute have names that are plural because the attribute indicates that more than one value can be specified. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1715 [Warning] CA1715: Identifiers should have correct prefix [Description] | The name of an externally visible interface does not start with an uppercase "I". The name of a generic type parameter on an externally visible type or method does not start with an uppercase "T". | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1716 [Warning] CA1716: Identifiers should not match keywords [Description] | A namespace name or a type name matches a reserved keyword in a programming language. Identifiers for namespaces and types should not match keywords that are defined by languages that target the common language runtime. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1717 [Warning] CA1717: Only FlagsAttribute enums should have plural names [Description] | Naming conventions dictate that a plural name for an enumeration indicates that more than one value of the enumeration can be specified at the same time. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1719 [Warning] CA1719: Parameter names should not match member names [Description] | A parameter name should communicate the meaning of a parameter and a member name should communicate the meaning of a member. It would be a rare design where these were the same. Naming a parameter the same as its member name is unintuitive and makes the library difficult to use. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1720 [Warning] CA1720: Identifiers should not contain type names [Description] | The name of a parameter in an externally visible member contains a data type name, or the name of an externally visible member contains a language-specific data type name. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1721 [Warning] CA1721: Property names should not match get methods [Description] | The name of a public or protected member starts with "Get" and otherwise matches the name of a public or protected property. "Get" methods and properties should have names that clearly distinguish their function. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1722 [Warning] CA1722: Identifiers should not have incorrect prefix [Description] | By convention, only certain programming elements have names that begin with a specific prefix. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1724 [Warning] CA1724: Type Names Should Not Match Namespaces [Description] | Type names should not match the names of namespaces that are defined in the .NET Framework class library. Violating this rule can reduce the usability of the library. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1725 [Warning] CA1725: Parameter names should match base declaration [Description] | Consistent naming of parameters in an override hierarchy increases the usability of the method overrides. A parameter name in a derived method that differs from the name in the base declaration can cause confusion about whether the method is an override of the base method or a new overload of the method. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1726 [Warning] CA1726: Use preferred terms [Description] | The name of an externally visible identifier includes a term for which an alternative, preferred term exists. Alternatively, the name includes the term "Flag" or "Flags". | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1800 [Warning] CA1800: Do not cast unnecessarily [Description] | Duplicate casts decrease performance, especially when the casts are performed in compact iteration statements. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1801 [Warning] CA1801: Review unused parameters [Description] | A method signature includes a parameter that is not used in the method body. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1802 [Warning] CA1802: Use Literals Where Appropriate [Description] | A field is declared static and read-only (Shared and ReadOnly in Visual Basic), and is initialized by using a value that is computable at compile time. Because the value that is assigned to the targeted field is computable at compile time, change the declaration to a const (Const in Visual Basic) field so that the value is computed at compile time instead of at run time. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1804 [Warning] CA1804: Remove unused locals [Description] | Unused local variables and unnecessary assignments increase the size of an assembly and decrease performance. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1806 [Warning] CA1806: Do not ignore method results [Description] | A new object is created but never used; or a method that creates and returns a new string is called and the new string is never used; or a COM or P/Invoke method returns an HRESULT or error code that is never used. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1809 [Warning] CA1809: Avoid excessive locals [Description] | A common performance optimization is to store a value in a processor register instead of memory, which is referred to as "enregistering the value". To increase the chance that all local variables are enregistered, limit the number of local variables to 64. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1810 [Warning] CA1810: Initialize reference type static fields inline [Description] | When a type declares an explicit static constructor, the just-in-time (JIT) compiler adds a check to each static method and instance constructor of the type to make sure that the static constructor was previously called. Static constructor checks can decrease performance. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1811 [Warning] CA1811: Avoid uncalled private code [Description] | A private or internal (assembly-level) member does not have callers in the assembly; it is not invoked by the common language runtime; and it is not invoked by a delegate. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1812 [Warning] CA1812: Avoid uninstantiated internal classes [Description] | An instance of an assembly-level type is not created by code in the assembly. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1813 [Warning] CA1813: Avoid unsealed attributes [Description] | The .NET Framework class library provides methods for retrieving custom attributes. By default, these methods search the attribute inheritance hierarchy. Sealing the attribute eliminates the search through the inheritance hierarchy and can improve performance. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1814 [Warning] CA1814: Prefer jagged arrays over multidimensional [Description] | A jagged array is an array whose elements are arrays. The arrays that make up the elements can be of different sizes, leading to less wasted space for some sets of data. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1815 [Warning] CA1815: Override equals and operator equals on value types [Description] | For value types, the inherited implementation of Equals uses the Reflection library and compares the contents of all fields. Reflection is computationally expensive, and comparing every field for equality might be unnecessary. If you expect users to compare or sort instances, or to use instances as hash table keys, your value type should implement Equals. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1816 [Warning] CA1816: Call GC.SuppressFinalize correctly [Description] | A method that is an implementation of Dispose does not call GC.SuppressFinalize; or a method that is not an implementation of Dispose calls GC.SuppressFinalize; or a method calls GC.SuppressFinalize and passes something other than this (Me in Visual Basic). | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1819 [Warning] CA1819: Properties should not return arrays [Description] | Arrays that are returned by properties are not write-protected, even when the property is read-only. To keep the array tamper-proof, the property must return a copy of the array. Typically, users will not understand the adverse performance implications of calling such a property. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1820 [Warning] CA1820: Test for empty strings using string length [Description] | Comparing strings by using the String.Length property or the String.IsNullOrEmpty method is significantly faster than using Equals. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1821 [Warning] CA1821: Remove empty finalizers [Description] | Whenever you can, avoid finalizers because of the additional performance overhead that is involved in tracking object lifetime. An empty finalizer incurs added overhead and delivers no benefit. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1822 [Warning] CA1822: Mark members as static [Description] | Members that do not access instance data or call instance methods can be marked as static (Shared in Visual Basic). After you mark the methods as static, the compiler will emit nonvirtual call sites to these members. This can give you a measurable performance gain for performance-sensitive code. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1823 [Warning] CA1823: Avoid unused private fields [Description] | Private fields were detected that do not appear to be accessed in the assembly. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1824 [Warning] CA1824: Mark assemblies with NeutralResourcesLanguageAttribute [Description] | The NeutralResourcesLanguage attribute informs the ResourceManager of the language that was used to display the resources of a neutral culture for an assembly. This improves lookup performance for the first resource that you load and can reduce your working set. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1900 [Warning] CA1900: Value type fields should be portable [Description] | This rule checks that structures that are declared by using explicit layout will align correctly when marshaled to unmanaged code on 64-bit operating systems. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1901 [Warning] CA1901: P/Invoke declarations should be portable [Description] | This rule evaluates the size of each parameter and the return value of a P/Invoke, and verifies that the size of the parameter is correct when marshaled to unmanaged code on 32-bit and 64-bit operating systems. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA1903 [Warning] CA1903: Use only API from targeted framework [Description] | A member or type is using a member or type that was introduced in a service pack that was not included together with the targeted framework of the project. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2000 [Warning] CA2000: Dispose objects before losing scope [Description] | Because an exceptional event might occur that will prevent the finalizer of an object from running, the object should be explicitly disposed before all references to it are out of scope. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2001 [Warning] CA2001: Avoid calling problematic methods [Description] | A member calls a potentially dangerous or problematic method. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2002 [Warning] CA2002: Do not lock on objects with weak identity [Description] | An object is said to have a weak identity when it can be directly accessed across application domain boundaries. A thread that tries to acquire a lock on an object that has a weak identity can be blocked by a second thread in a different application domain that has a lock on the same object. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2003 [Warning] CA2003: Do not treat fibers as threads [Description] | A managed thread is being treated as a Win32 thread. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2004 [Warning] CA2004: Remove calls to GC.KeepAlive [Description] | If you convert to SafeHandle usage, remove all calls to GC.KeepAlive (object). In this case, classes should not have to call GC.KeepAlive. This assumes they do not have a finalizer but rely on SafeHandle to finalize the OS handle for them. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2006 [Warning] CA2006: Use SafeHandle to encapsulate native resources [Description] | Use of IntPtr in managed code might indicate a potential security and reliability problem. All uses of IntPtr must be reviewed to determine whether use of a SafeHandle, or similar technology, is required in its place. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2100 [Warning] CA2100: Review SQL queries for security vulnerabilities [Description] | A method sets the System.Data.IDbCommand.CommandText property by using a string that is built from a string argument to the method. This rule assumes that the string argument contains user input. A SQL command string that is built from user input is vulnerable to SQL injection attacks. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2101 [Warning] CA2101: Specify marshaling for P/Invoke string arguments [Description] | A platform invoke member allows partially trusted callers, has a string parameter, and does not explicitly marshal the string. This can cause a potential security vulnerability. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2102 [Warning] CA2102: Catch non-CLSCompliant exceptions in general handlers [Description] | A member in an assembly that is not marked by using the RuntimeCompatibilityAttribute or is marked RuntimeCompatibility(WrapNonExceptionThrows = false) contains a catch block that handles System.Exception and does not contain an immediately following general catch block. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2103 [Warning] CA2103: Review imperative security [Description] | A method uses imperative security and might be constructing the permission by using state information or return values that can change as long as the demand is active. Use declarative security whenever possible. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2104 [Warning] CA2104: Do not declare read only mutable reference types [Description] | An externally visible type contains an externally visible read-only field that is a mutable reference type. A mutable type is a type whose instance data can be modified. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2105 [Warning] CA2105: Array fields should not be read only [Description] | When you apply the read-only (ReadOnly in Visual Basic) modifier to a field that contains an array, the field cannot be changed to reference a different array. However, the elements of the array that are stored in a read-only field can be changed. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2106 [Warning] CA2106: Secure asserts [Description] | A method asserts a permission and no security checks are performed on the caller. Asserting a security permission without performing any security checks can leave an exploitable security weakness in your code. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2107 [Warning] CA2107: Review deny and permit only usage [Description] | The PermitOnly method and CodeAccessPermission.Deny security actions should be used only by those who have an advanced knowledge of .NET Framework security. Code that uses these security actions should undergo a security review. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2108 [Warning] CA2108: Review declarative security on value types [Description] | A public or protected value type is secured by Data Access or Link Demands. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2109 [Warning] CA2109: Review visible event handlers [Description] | A public or protected event-handling method was detected. Event-handling methods should not be exposed unless absolutely necessary. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2111 [Warning] CA2111: Pointers should not be visible [Description] | A pointer is not private, internal, or read-only. Malicious code can change the value of the pointer, which potentially gives access to arbitrary locations in memory or causes application or system failures. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2112 [Warning] CA2112: Secured types should not expose fields [Description] | A public or protected type contains public fields and is secured by Link Demands. If code has access to an instance of a type that is secured by a link demand, the code does not have to satisfy the link demand to access the fields of the type. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2114 [Warning] CA2114: Method security should be a superset of type [Description] | A method should not have both method-level and type-level declarative security for the same action. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2115 [Warning] CA2115: Call GC.KeepAlive when using native resources [Description] | This rule detects errors that might occur because an unmanaged resource is being finalized while it is still being used in unmanaged code. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2116 [Warning] CA2116: APTCA methods should only call APTCA methods [Description] | When the APTCA (AllowPartiallyTrustedCallersAttribute) is present on a fully trusted assembly, and the assembly executes code in another assembly that does not allow for partially trusted callers, a security exploit is possible. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2117 [Warning] CA2117: APTCA types should only extend APTCA base types [Description] | When the APTCA is present on a fully trusted assembly, and a type in the assembly inherits from a type that does not allow for partially trusted callers, a security exploit is possible. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2118 [Warning] CA2118: Review SuppressUnmanagedCodeSecurityAttribute usage [Description] | SuppressUnmanagedCodeSecurityAttribute changes the default security system behavior for members that execute unmanaged code that uses COM interop or operating system invocation. This attribute is primarily used to increase performance; however, the performance gains come together with significant security risks. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2119 [Warning] CA2119: Seal methods that satisfy private interfaces [Description] | An inheritable public type provides an overridable method implementation of an internal (Friend in Visual Basic) interface. To fix a violation of this rule, prevent the method from being overridden outside the assembly. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2120 [Warning] CA2120: Secure serialization constructors [Description] | This type has a constructor that takes a System.Runtime.Serialization.SerializationInfo object and a System.Runtime.Serialization.StreamingContext object (the signature of the serialization constructor). This constructor is not secured by a security check, but one or more of the regular constructors in the type are secured. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2121 [Warning] CA2121: Static constructors should be private [Description] | The system calls the static constructor before the first instance of the type is created or any static members are referenced. If a static constructor is not private, it can be called by code other than the system. Depending on the operations that are performed in the constructor, this can cause unexpected behavior. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2122 [Warning] CA2122: Do not indirectly expose methods with link demands [Description] | A public or protected member has Link Demands and is called by a member that does not perform any security checks. A link demand checks the permissions of the immediate caller only. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2123 [Warning] CA2123: Override link demands should be identical to base [Description] | This rule matches a method to its base method, which is either an interface or a virtual method in another type, and then compares the link demands on each. If this rule is violated, a malicious caller can bypass the link demand just by calling the unsecured method. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2124 [Warning] CA2124: Wrap vulnerable finally clauses in outer try [Description] | A public or protected method contains a try/finally block. The finally block appears to reset the security state and is not itself enclosed in a finally block. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2126 [Warning] CA2126: Type link demands require inheritance demands [Description] | A public unsealed type is protected by using a link demand and has an overridable method. Neither the type nor the method is protected by using an inheritance demand. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2127 [Warning] CA2136: Members should not have conflicting transparency annotations [Description] | Critical code cannot occur in a 100 percent−transparent assembly. This rule analyzes 100 percent−transparent assemblies for any SecurityCritical annotations at the type, field, and method levels. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2128 [Warning] CA2147: Transparent methods may not use security asserts [Description] | This rule analyzes all methods and types in an assembly that is either 100 percent−transparent or mixed transparent/critical, and flags any declarative or imperative use of Assert. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2129 [Warning] CA2140: Transparent code must not reference security critical items [Description] | Methods that are marked by SecurityTransparentAttribute call nonpublic members that are marked as SecurityCritical. This rule analyzes all methods and types in an assembly that is mixed transparent/critical, and flags any calls from transparent code to nonpublic critical code that are not marked as SecurityTreatAsSafe. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2130 [Warning] CA2130: Security critical constants should be transparent [Description] | Transparency enforcement is not enforced for constant values because compilers inline constant values so that no lookup is required at run time. Constant fields should be security transparent so that code reviewers do not assume that transparent code cannot access the constant. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2131 [Warning] CA2131: Security critical types may not participate in type equivalence [Description] | A type participates in type equivalence and either the type itself, or a member or field of the type, is marked by using the SecurityCriticalAttribute attribute. This rule occurs on any critical types or types that contain critical methods or fields that are participating in type equivalence. When the CLR detects such a type, it does not load it with a TypeLoadException at run time. Typically, this rule is raised only when users implement type equivalence manually instead of in by relying on tlbimp and the compilers to do the type equivalence. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2132 [Warning] CA2132: Default constructors must be at least as critical as base type default constructors [Description] | Types and members that have the SecurityCriticalAttribute cannot be used by Silverlight application code. Security-critical types and members can be used only by trusted code in the .NET Framework for Silverlight class library. Because a public or protected construction in a derived class must have the same or greater transparency than its base class, a class in an application cannot be derived from a class marked as SecurityCritical. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2133 [Warning] CA2133: Delegates must bind to methods with consistent transparency [Description] | This warning is raised on a method that binds a delegate that is marked by using the SecurityCriticalAttribute to a method that is transparent or that is marked by using the SecuritySafeCriticalAttribute. The warning also is raised on a method that binds a delegate that is transparent or safe-critical to a critical method. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2134 [Warning] CA2134: Methods must keep consistent transparency when overriding base methods [Description] | This rule is raised when a method marked by using the SecurityCriticalAttribute overrides a method that is transparent or marked by using the SecuritySafeCriticalAttribute. The rule also is raised when a method that is transparent or marked by using the SecuritySafeCriticalAttribute overrides a method that is marked by using a SecurityCriticalAttribute. The rule is applied when overriding a virtual method or implementing an interface. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2135 [Warning] CA2135: Level 2 assemblies should not contain LinkDemands [Description] | LinkDemands are deprecated in the level 2 security rule set. Instead of using LinkDemands to enforce security at JIT compilation time, mark the methods, types, and fields by using the SecurityCriticalAttribute attribute. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2136 [Warning] CA2136: Members should not have conflicting transparency annotations [Description] | Transparency attributes are applied from code elements of larger scope to elements of smaller scope. The transparency attributes of code elements that have larger scope take precedence over transparency attributes of code elements that are contained in the first element. For example, a class that is marked by using the SecurityCriticalAttribute attribute cannot contain a method that is marked by using the SecuritySafeCriticalAttribute attribute. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2137 [Warning] CA2137: Transparent methods must contain only verifiable IL [Description] | A method contains unverifiable code or returns a type by reference. This rule is raised on attempts by security transparent code to execute unverifiable microsoft intermediate language (MISL). However, the rule does not contain a full IL verifier, and instead uses heuristics to catch most violations of MSIL verification. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2138 [Warning] CA2138: Transparent methods must not call methods with the SuppressUnmanagedCodeSecurity attribute [Description] | A security transparent method calls a method that is marked by using the SuppressUnmanagedCodeSecurityAttribute attribute. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2139 [Warning] CA2139: Transparent methods may not use the HandleProcessCorruptingExceptions attribute [Description] | This rule is raised by any method that is transparent and attempts to handle a process corrupting exception by using the HandleProcessCorruptedStateExceptionsAttribute attribute. A process corrupting exception is a CLR version 4.0 exception classification of exceptions such as AccessViolationException. The HandleProcessCorruptedStateExceptionsAttribute attribute may be used only by security critical methods, and will be ignored if it is applied to a transparent method. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2140 [Warning] CA2140: Transparent code must not reference security critical items [Description] | A code element that is marked by using the SecurityCriticalAttribute attribute is security critical. A transparent method cannot use a security critical element. If a transparent type attempts to use a security critical type, a TypeAccessException, MethodAccessException, or FieldAccessException is raised. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
4b3479f6_gs_for_Managed_Code_by_CheckId__Description | [CheckId] CA2141 [Warning] CA2141:Transparent methods must not satisfy LinkDemands [Description] | A security transparent method calls a method in an assembly that is not marked by using the APTCA, or a security transparent method satisfies a LinkDemand for a type or a method. | [] | Code Analysis Warnings for Managed Code by CheckId | Description | https://msdn.microsoft.com/en-us/library/dd380629(v=vs.110).aspx | 17/1438042987402.78_20150728002307-00206-ip-10-236-191-2_869466054_0.json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.