Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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: 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft