다음을 통해 공유


Name 속성

Gets or sets the name of the linked server log-in.

이 API는 CLS 규격이 아닙니다. 

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcKeyAttribute()> _
<SfcReferenceAttribute(GetType(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
<CLSCompliantAttribute(False)> _
Public Overrides Property Name As String
    Get
    Set
‘사용 방법
Dim instance As LinkedServerLogin
Dim value As String

value = instance.Name

instance.Name = value
[SfcKeyAttribute()]
[SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
[CLSCompliantAttribute(false)]
public override string Name { get; set; }
[SfcKeyAttribute()]
[SfcReferenceAttribute(typeof(Login), L"Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
[CLSCompliantAttribute(false)]
public:
virtual property String^ Name {
    String^ get () override;
    void set (String^ value) override;
}
[<SfcKeyAttribute()>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
[<CLSCompliantAttribute(false)>]
abstract Name : string with get, set
[<SfcKeyAttribute()>]
[<SfcReferenceAttribute(typeof(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
[<CLSCompliantAttribute(false)>]
override Name : string with get, set
override function get Name () : String
override function set Name (value : String)

속성 값

유형: System. . :: . .String
A string value that contains the name of the linked server log-in.