Share via


DataRuleException Constructor (String)

Initializes a new instance of the DataRuleException class by using a specified message that states the error.

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

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
public DataRuleException(
    string message
)
public:
DataRuleException(
    String^ message
)
new : 
        message:string -> DataRuleException
public function DataRuleException(
    message : String
)

Parameters

  • message
    Type: System.String
    The message that states the exception. The caller of this constructor is required to make sure that that this string has been localized for the current system culture.

.NET Framework Security

See Also

Reference

DataRuleException Class

DataRuleException Overload

Microsoft.Data.Schema.StaticCodeAnalysis Namespace

DataRuleException

Other Resources

Handling and Throwing Exceptions