InvalidUdtException.Create(Type, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new InvalidUdtException object.
public static Microsoft.SqlServer.Server.InvalidUdtException Create (Type udtType, string resourceReason = "SqlUdtReason_NoUdtAttribute");
static member Create : Type * string -> Microsoft.SqlServer.Server.InvalidUdtException
Public Shared Function Create (udtType As Type, Optional resourceReason As String = "SqlUdtReason_NoUdtAttribute") As InvalidUdtException
Parameters
- resourceReason
- String
The String object that represents a string in string resources. The default value is SqlUdtReason_NoUdtAttribute
which looks up a localized string similar to "no UDT attribute".
Returns
A new InvalidUdtException object.
Remarks
This method Looks up a localized string similar to "'{0}' is an invalid user defined type, reason: {1}.", and fills it in order with udtType
and resourceReason
resolved value.
Important
This function exposes for backward compatibility, and should be used with default value for resourceReason
parameter.