LinkedServerLogin.Name Property
Gets or sets the name of the linked server log-in.
This API is not CLS-compliant.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
<SfcReferenceAttribute(GetType(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", _
)> _
<CLSCompliantAttribute(False)> _
<SfcKeyAttribute()> _
Public Overrides Property Name As String
Get
Set
'Usage
Dim instance As LinkedServerLogin
Dim value As String
value = instance.Name
instance.Name = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
[SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",
)]
[CLSCompliantAttribute(false)]
[SfcKeyAttribute()]
public override string Name { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
[SfcReferenceAttribute(typeof(Login), L"Server[@Name = '{0}']/Login[@Name = '{1}']",
)]
[CLSCompliantAttribute(false)]
[SfcKeyAttribute()]
public:
virtual property String^ Name {
String^ get () override;
void set (String^ value) override;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",
)>]
[<CLSCompliantAttribute(false)>]
[<SfcKeyAttribute()>]
abstract Name : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",
)>]
[<CLSCompliantAttribute(false)>]
[<SfcKeyAttribute()>]
override Name : string with get, set
override function get Name () : String
override function set Name (value : String)
Property Value
Type: System.String
A string value that contains the name of the linked server log-in.