Server.InstallSharedDirectory Property

 

Applies To: SQL Server 2016 Preview

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public string InstallSharedDirectory { get; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property String^ InstallSharedDirectory {
    String^ get();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member InstallSharedDirectory : string with get
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public ReadOnly Property InstallSharedDirectory As String

Property Value

Type: System.String

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

Examples

Legacy Code Example

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

See Also

Server Class
Microsoft.SqlServer.Management.Smo Namespace

Broken link. The 'b1d56f2f-603f48f2-b902-c715f14a6db9' GUID is not correct.Unable to find linked topic '776ac273-bbe5-45e2-8bc8-a6f2b9cac03a'.

Return to top