SmoCollectionBase.GetItemById Method (Int32, String)


Extracts a member from the referenced collection using a system-defined, unique identifier and name.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

protected SqlSmoObject GetItemById(
	int id,
	string idPropName


Type: System.Int32

An Int32 value that uniquely identifies the object that is a member of the referenced collection.

Type: System.String

A String value that specifies the name of the property.

Return Value

Type: Microsoft.SqlServer.Management.Smo.SqlSmoObject

An Object system object that has the specified ID value.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Return to top