Share via


DataRuleAttribute Constructor

Creates a new instance of the DataRuleAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    namespace As String, _
    id As String, _
    resourceBaseName As String, _
    displayNameResourceId As String, _
    categoryResourceId As String _
)
public DataRuleAttribute(
    string namespace,
    string id,
    string resourceBaseName,
    string displayNameResourceId,
    string categoryResourceId
)
public:
DataRuleAttribute(
    String^ namespace, 
    String^ id, 
    String^ resourceBaseName, 
    String^ displayNameResourceId, 
    String^ categoryResourceId
)
new : 
        namespace:string * 
        id:string * 
        resourceBaseName:string * 
        displayNameResourceId:string * 
        categoryResourceId:string -> DataRuleAttribute
public function DataRuleAttribute(
    namespace : String, 
    id : String, 
    resourceBaseName : String, 
    displayNameResourceId : String, 
    categoryResourceId : String
)

Parameters

  • id
    Type: System.String
    A string that contains an identifier that is unique in the namespace.
  • resourceBaseName
    Type: System.String
    A string that contains the base name for the localized resources.
  • displayNameResourceId
    Type: System.String
    A string that contains the resource identifier for the localized display name.
  • categoryResourceId
    Type: System.String
    A string that contains the resource identifier for the localized category.

.NET Framework Security

See Also

Reference

DataRuleAttribute Class

Microsoft.Data.Schema.StaticCodeAnalysis Namespace