ServerRoleCollection.ItemById(Int32) ServerRoleCollection.ItemById(Int32) ServerRoleCollection.ItemById(Int32) Method

Definition

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

public:
 Microsoft::SqlServer::Management::Smo::ServerRole ^ ItemById(int id);
public Microsoft.SqlServer.Management.Smo.ServerRole ItemById (int id);
Public Function ItemById (id As Integer) As ServerRole
Parameters
id
Int32 Int32 Int32

An Int32 that uniquely identifies the ServerRole object that is a member of the ServerRoleCollection collection.

Returns

A ServerRole object that has the specified ID value.

Examples

Using Collections

Applies to