Export (0) Print
Expand All

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: Int32
An Int32 value that uniquely identifies the object that is a member of the referenced collection.
Type: 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft