Share via


Rule.Namespace Property

Gets or sets the prefix of the full ID of the rule.

Namespace:  Microsoft.Data.Schema.StaticCodeAnalysis
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Property Namespace As String
'Usage
Dim instance As Rule 
Dim value As String 

value = instance.Namespace

instance.Namespace = value
public string Namespace { get; private set; }
public:
property String^ Namespace {
    String^ get ();
    void set (String^ value);
}
public function get Namespace () : String 
public function set Namespace (value : String)

Property Value

Type: System.String

Remarks

The namespace is primarily used as a convenient way to group rules in XML files. It is also recommended that you use it as the namespace of the type implementing the rule.

.NET Framework Security

See Also

Reference

Rule Class

Rule Members

Microsoft.Data.Schema.StaticCodeAnalysis Namespace