DelegateGetSvcInstRootDirPathByName 委托

定义

按给定的友好实例名称表示特定 SQL 实例的目录路径根目录。

public delegate bool DelegateGetSvcInstRootDirPathByName(System::String ^ sInstanceName, SQL_SVCS Service, StringBuilder ^ sPath, [Runtime::InteropServices::Out] System::UInt32 % pdwSize);
public delegate bool DelegateGetSvcInstRootDirPathByName(string sInstanceName, SQL_SVCS Service, StringBuilder sPath, out uint pdwSize);
type DelegateGetSvcInstRootDirPathByName = delegate of string * SQL_SVCS * StringBuilder * uint32 -> bool
Public Delegate Function DelegateGetSvcInstRootDirPathByName(sInstanceName As String, Service As SQL_SVCS, sPath As StringBuilder, ByRef pdwSize As UInteger) As Boolean 

参数

sInstanceName
String

实例名称。

Service
SQL_SVCS

SQL Server中的字符串。

sPath
StringBuilder

配置文件的位置。

pdwSize
UInt32

返回的结构的估计大小(以字节为单位)。

返回值

true 如果按名称获取目录路径根;否则为 false

适用于