Share via


InvalidUdtException.Create(Type, String) Method

Definition

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

udtType
Type

The Type object.

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.

Applies to