Server.InstallSharedDirectory Server.InstallSharedDirectory Server.InstallSharedDirectory Property

Definition

Gets the remote shared directory where the installation data is stored for the instance of SQL Server.

public:
 property System::String ^ InstallSharedDirectory { System::String ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public string InstallSharedDirectory { get; }
Public ReadOnly Property InstallSharedDirectory As String
Property Value

A String object that specifies the remote shared directory where the installation data is stored for the instance of SQL Server.

Examples

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."  

Applies to