InstAPI.GetSvcInstRootRegPathByName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过给定的友好实例名称获取特定SQL实例的注册表路径根。
public:
static bool GetSvcInstRootRegPathByName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ registryPath, System::UInt32 % bufferSize);
public static bool GetSvcInstRootRegPathByName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder registryPath, ref uint bufferSize);
static member GetSvcInstRootRegPathByName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSvcInstRootRegPathByName (instanceName As String, product As SQL_SVCS, registryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
参数
- product
- SQL_SVCS
SQL服务。
- registryPath
- StringBuilder
指向缓冲区以接收注册表路径的指针。
- bufferSize
- UInt32
一个指向DWORD值的指针,用于提供缓冲区的长度。 如果缓冲区太小,则返回所需长度。
返回
true如果叫牌成功;否则,。 false