SystemMessageCollection.ItemByIdAndLanguageId 方法

Extracts a member from the SystemMessageCollection collection using a system-defined, unique identifier and the specified language ID.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function ItemByIdAndLanguageId ( _
    id As Integer, _
    languageId As Integer _
) As SystemMessage
用法
Dim instance As SystemMessageCollection 
Dim id As Integer 
Dim languageId As Integer 
Dim returnValue As SystemMessage 

returnValue = instance.ItemByIdAndLanguageId(id, _
    languageId)
public SystemMessage ItemByIdAndLanguageId(
    int id,
    int languageId
)
public:
SystemMessage^ ItemByIdAndLanguageId(
    int id, 
    int languageId
)
member ItemByIdAndLanguageId : 
        id:int * 
        languageId:int -> SystemMessage
public function ItemByIdAndLanguageId(
    id : int, 
    languageId : int
) : SystemMessage

参数

  • languageId
    类型:System.Int32
    An Int32 value that specifies the ID value that uniquely identifies the language in which the system message is written. The language ID values are listed in sys.syslanguages system table, us_english is 0, and Deutsch is 1 for example.

返回值

类型:Microsoft.SqlServer.Management.Smo.SystemMessage
A SystemMessage object that has the specified ID value.

示例

使用集合

请参阅

参考

SystemMessageCollection 类

Microsoft.SqlServer.Management.Smo 命名空间