다음을 통해 공유


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입니다.

적용 대상