Online and CHM
SetConfig Method



KellermanSoftware.StaticCodeAnalysis Namespace > QualityConfig Class : SetConfig Method

Set the configuration by name

Quality Check Options
Extensions Violation Config Name Default Maximum Value
* Deep Nested Call MaxNestedCall 3
* Duplicate String Literal MaxDuplicateStrings 3
* File Too Big MaxFileLength 500
* Method Too Big MaxMethodLength 50
* Too Many Parameters MaxParameters 5
* Too Much Nesting MaxNesting 4
.c Method too Complex MaxCyclomaticComplexity 21
.cpp,.cxx,.cc,.ixx Method too Complex MaxCyclomaticComplexity 21
.cs Don't throw base Exception CSharpMaxThrowBaseException 0
.cs Don't use goto CSharpMaxGoToStatements 0
.cs Don't use lock(this) CSharpMaxLockThis 0
.cs Method too Complex MaxCyclomaticComplexity 21
.cs Rethrow detected CSharpMaxRethrow 0
.cs throw new NotImplementedException detected CSharpMaxNotImplementedException 0
.go Method too Complex MaxCyclomaticComplexity 21
.java Method too Complex MaxCyclomaticComplexity 21
.js Method too Complex MaxCyclomaticComplexity 21
.kt Method too Complex MaxCyclomaticComplexity 21
.php Method too Complex MaxCyclomaticComplexity 21
.py Method too Complex MaxCyclomaticComplexity 21
.ts Method too Complex MaxCyclomaticComplexity 21

Syntax
'Declaration
 
Public Sub SetConfig( _
   ByVal configName As String, _
   ByVal configValue As Integer _
) 
'Usage
 
Dim instance As QualityConfig
Dim configName As String
Dim configValue As Integer
 
instance.SetConfig(configName, configValue)
public void SetConfig( 
   string configName,
   int configValue
)
public:
void SetConfig( 
   String^ configName,
   int configValue
) 

Parameters

configName
configValue
Exceptions
ExceptionDescription
Occurs when the configuration cannot be found.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

QualityConfig Class
QualityConfig Members