次の方法で共有


NamedPipesEnabled プロパティ

SQL Server のインスタンスで、名前付きパイプ プロバイダーがクライアントとサーバーの接続に対して有効かどうかを示す Boolean 値を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property NamedPipesEnabled As Boolean
    Get
'使用
Dim instance As Server
Dim value As Boolean

value = instance.NamedPipesEnabled
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool NamedPipesEnabled { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool NamedPipesEnabled {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member NamedPipesEnabled : bool
function get NamedPipesEnabled () : boolean

プロパティ値

型: System. . :: . .Boolean
SQL Server のインスタンスで名前付きパイプ プロバイダーが有効かどうかを示す Boolean 値です。
True の場合、名前付きパイプが有効です。それ以外の場合は、False (既定値) です。

使用例

C#

Server srv = new Server("(local)");
Console.WriteLine("The Named Pipes provider is enabled: " + srv.NamedPipesEnabled.ToString()

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The Named Pipes provider is enabled:" $srv.NamedPipesEnabled

関連項目

参照

Planning a SQL Server Installation

その他の技術情報