مشاركة عبر


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

Property Value

Type: Microsoft.SqlServer.Management.Smo.RegisteredServers.RegisteredServer
A RegisteredServer object value that represents the registered server.

Examples

Using Collections

See Also

Reference

RegisteredServerCollection Class

Item Overload

Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

Other Resources

Using Collections