RegisteredServerCollection.Item Property (String)
Gets a RegisteredServer object in the collection by name.
Namespace: Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As RegisteredServer
Get
'Usage
Dim instance As RegisteredServerCollection
Dim name As String
Dim value As RegisteredServer
value = instance(name)
public RegisteredServer this[
string name
] { get; }
public:
property RegisteredServer^ default[String^ name] {
RegisteredServer^ get (String^ name);
}
member Item : RegisteredServer
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- name
Type: System.String
A String value that specifies the name of the RegisteredServer object in the RegisteredServerCollection collection.
Property Value
Type: Microsoft.SqlServer.Management.Smo.RegisteredServers.RegisteredServer
A RegisteredServer object value that represents the registered server.
Examples
See Also
Reference
RegisteredServerCollection Class
Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace