InvalidUdtException.Create(Type, String) 方法

定義

建立新的 InvalidUdtException 物件。

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

參數

udtType
Type

Type 物件。

resourceReason
String

String物件,表示字串資源中的字串。 預設值是 SqlUdtReason_NoUdtAttribute 查詢類似「無 UDT 屬性」的當地語系化字串。

傳回

新的 InvalidUdtException 物件。

備註

這個方法查閱類似 「『{0}的當地語系化字串是無效的使用者定義類型、原因: {1}.」。,並依 udtType 序填入並 resourceReason 解析的值。

重要

此函式會公開回溯相容性,而且應該搭配參數的 resourceReason 預設值使用。

適用於