LinkedServer.LinkedServerLogins Property

Represents a collection of LinkedServerLogin objects. Each LinkedServerLogin object represents a linked server login defined on the linked server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(LinkedServerLogin))> _
Public ReadOnly Property LinkedServerLogins As LinkedServerLoginCollection 
    Get
'Usage
Dim instance As LinkedServer 
Dim value As LinkedServerLoginCollection 

value = instance.LinkedServerLogins
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(LinkedServerLogin))]
public LinkedServerLoginCollection LinkedServerLogins { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(LinkedServerLogin))]
public:
property LinkedServerLoginCollection^ LinkedServerLogins {
    LinkedServerLoginCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(LinkedServerLogin))>]
member LinkedServerLogins : LinkedServerLoginCollection
function get LinkedServerLogins () : LinkedServerLoginCollection

Property Value

Type: Microsoft.SqlServer.Management.Smo.LinkedServerLoginCollection
A LinkedServerLoginCollection object that represents all the linked server logins defined on the linked server.

Examples

Using Linked Servers in SMO

See Also

Reference

LinkedServer Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Linked Servers (Database Engine)

sp_addlinkedserver (Transact-SQL)