Partager via


Location propriété

Gets or sets the description of the location of the linked server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property Location As String
    Get
    Set
'Utilisation
Dim instance As LinkedServer
Dim value As String

value = instance.Location

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

Valeur de la propriété

Type : System. . :: . .String
A String value that specifies the location of the linked server.

Notes

Server names often do not reveal their physical location. The Location property is used to add a description of the physical location such as "Paris", or "Building 11".