DelegateGetSvcBinPathByInstName 委托

定义

按给定的友好实例名称表示 SQL Server 服务的程序文件根目录。

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

参数

sInstanceName
String

一个表示实例名称的 String 值。

Service
SQL_SVCS

SQL 服务。

sPath
StringBuilder

一个指向用于接收路径的缓冲区的指针。

pdwSize
UInt32

如果提供的缓冲区太小,则返回所需长度。

返回值

Boolean包含SQL Server服务的程序文件根目录(按给定的友好实例名称)。

适用于