共用方式為


LocalHostAlias 屬性

Gets or sets the local host alias that is used to connect to the local instance of SQL Server.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public Property LocalHostAlias As String
    Get
    Set
'用途
Dim instance As JobServer
Dim value As String

value = instance.LocalHostAlias

instance.LocalHostAlias = value
[SfcPropertyAttribute]
public string LocalHostAlias { get; set; }
[SfcPropertyAttribute]
public:
property String^ LocalHostAlias {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member LocalHostAlias : string with get, set
function get LocalHostAlias () : String
function set LocalHostAlias (value : String)

屬性值

型別:System. . :: . .String
A String value that specifies the name of the local host alias.