SmoCollectionBase.GetItemById SmoCollectionBase.GetItemById SmoCollectionBase.GetItemById Method

Definition

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

Overloads

GetItemById(Int32) GetItemById(Int32) GetItemById(Int32)

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

GetItemById(Int32, String) GetItemById(Int32, String) GetItemById(Int32, String)

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

Remarks

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

GetItemById(Int32) GetItemById(Int32) GetItemById(Int32)

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

protected:
 Microsoft::SqlServer::Management::Smo::SqlSmoObject ^ GetItemById(int id);
protected Microsoft.SqlServer.Management.Smo.SqlSmoObject GetItemById (int id);
Protected Function GetItemById (id As Integer) As SqlSmoObject
Parameters
id
Int32 Int32 Int32

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

Returns

An Object system object that has the specified ID value.

Examples

Using Collections

Remarks

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

GetItemById(Int32, String) GetItemById(Int32, String) GetItemById(Int32, String)

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

protected:
 Microsoft::SqlServer::Management::Smo::SqlSmoObject ^ GetItemById(int id, System::String ^ idPropName);
protected Microsoft.SqlServer.Management.Smo.SqlSmoObject GetItemById (int id, string idPropName);
Protected Function GetItemById (id As Integer, idPropName As String) As SqlSmoObject
Parameters
id
Int32 Int32 Int32

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

idPropName
String String String

A String value that specifies the name of the property.

Returns

An Object system object that has the specified ID value.

Examples

Using Collections

Remarks

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

Applies to