Share via


Propriété InstallSharedDirectory

Obtient le répertoire partagé distant où les données d'installation sont stockées pour l'instance de SQL Server.

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

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property InstallSharedDirectory As String
    Get
'Utilisation
Dim instance As Server
Dim value As String

value = instance.InstallSharedDirectory
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string InstallSharedDirectory { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ InstallSharedDirectory {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member InstallSharedDirectory : string
function get InstallSharedDirectory () : String

Valeur de propriété

Type : System. . :: . .String
Objet String qui spécifie le répertoire partagé distant où les données d'installation sont stockées pour l'instance de SQL Server.

Exemples

C#

Server srv = new Server("(local)");
Console.WriteLine("SQL Server installation data is stored in the " + srv.InstallSharedDirectory + " remote shared directory.");

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "SQL Server installation data is stored in the" $srv.InstallSharedDirectory "remote shared directory."

Voir aussi

Référence

Planning a SQL Server Installation

Autres ressources