InstAPI.GetInstRegPathByName(String, SQL_SVCS, StringBuilder, UInt32) メソッド

定義

特定のSQLインスタンスおよびサービスのレジストリパスを、指定されたフレンドリーインスタンス名で取得します。

public:
 static bool GetInstRegPathByName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ registryPath, System::UInt32 % bufferSize);
public static bool GetInstRegPathByName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder registryPath, ref uint bufferSize);
static member GetInstRegPathByName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetInstRegPathByName (instanceName As String, product As SQL_SVCS, registryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean

パラメーター

instanceName
String

インスタンス名を表す String 値。

product
SQL_SVCS

SQLサービスです。

registryPath
StringBuilder

レジストリパスを受信するためのバッファへのポインタです。

bufferSize
UInt32

バッファの長さを提供するDWORD値へのポインタです。 供給されたバッファが小さすぎる場合は、必要な長さを返します。

返品

true もしその呼びかけが成功した場合、それ以外は false

適用対象